Herbert Carinote
This blog is my collection of computer tricks : )
Mga Pahina
(Ilipat sa ...)
Home
ABOUT ME
▼
Miyerkules, Enero 23, 2013
C++ REVERSE NUMBER
#include<stdio.h>
#include<conio.h>
void main(){
clrscr();
long jom;
int rev;
printf("\nENTER NUMBER: ");
scanf("%ld",&jom);
printf("\n\nReverse no. is: ");
while(rham>0)
{
rev=jom%10;
jom=jom/10;
printf("%d",rev);
}
getch();
}
Walang komento:
Mag-post ng isang Komento
‹
›
Home
Tingnan ang bersyon ng web
Walang komento:
Mag-post ng isang Komento