Programming centre
Thursday, September 20, 2012
program for the right most digit of a number
"right most digit of a number"
#include<conio.h>
#include<stdio.h>
void main()
{
int n,r;
printf("Enter the number\n");
scanf("%d",&n);
r=n%10;
printf("The right most digit is\t%d",r);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment