View Code of Problem 77

#include<stdio.h>
#include<math.h>
#include<string.h>
void div(int i)
{
	int a,b,c,d;
	d=i%10;
	c=i/10%10;
	b=i/100%10;
	a=i/1000;
	printf("%d %d %d %d",a,b,c,d);
}
int main()
{
	int i;
	scanf("%d",&i);
	div(i);
}

Double click to view unformatted code.


Back to problem 77