View Code of Problem 77

 #include<stdio.h>
    main()
    {
      int func(int m);
      int n;
      scanf("%d",&n);
      func(n);
    }
    int func(int m)
    {
    	int a[10],i=0,n;
    	while(m!=0)
    	{
    		
    		a[i++]=m%10;
    		m=m/10;
		}
		for(n=i-1;n>0;n--)
		printf("%d ",a[n]);
		printf("%d",a[n]);
	}

Double click to view unformatted code.


Back to problem 77