wap to reverse 3 digit number in c language

 wap to reverse 3 digit number in c language

Program:-

#include<stdio.h>

#include<conio.h>

main()

{

int n,q,r;

clrscr();

printf("enter any three digit number");

scanf("%d",&n);

q=n/10;

r=n%10;

printf("%d",r);

n=q;

q=n/10;

r=n%10;

printf("%d", & r);

n=q;

r=n%10;

printf("%d",r);

getch();

}


No comments

Powered by Blogger.