#include”stdio.h”
#include”conio.h”
void main()
{
float a;
int b,c;
clrscr();
printf(“enter a value:”);
scanf(“%f”,&a);
b=(int)a;
c=b%10;
printf(“THE RIGHTMOST DIGIT OF THE GIVEN NO IS %d”,c);
getch();
}
OUTPUT WILL BE
enter a value:4562
THE RIGHTMOST DIGIT OF THE GIVEN NO IS 2
Google Ads
Saturday, May 30, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment