View Code of Problem 77

#include<stdio.h>
void f(int c[4])    
{
	int i;   
    c[0]=c[0]-48;
	c[1]=c[1]-48;
	c[2]=c[2]-48;
	c[3] = c[3]-48;
	for(i = 0;i<3;i++)    
	{     
		printf("%d ",c[i]);
	}    
	printf("%d ", c[3]);
	printf("\n");    
}     
int main()     
{
	int b[4],i;  
	for (i= 0;i<4;i++)
		b[i] = getchar();
    f(b);  
	return 0;
} 

Double click to view unformatted code.


Back to problem 77