There is a logical error in the program line ie.
printf("\nThe remander is : %d ",b);
it does not show the Moduls of the number .Suppose i write the number 5 i.e 15%10 it have to show 5 but on the screen it shows
the line as mention above.Please tell me what is the logical error that it shoes the out put as
printf("\nThe remander is : %d ",b);
Remaining my program is working fine.
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter the number : ");
scanf("%d",&a);
c=a/10;
b=a%10;
printf("The answer is : %d ",c);
printf("\nThe remander is : %d ",b); .....Error is here...?
getch();
}