Friday, March 17, 2023

"find the reverse number using while loop " using c .

 //find the reverse number using while loop

#include <stdio.h>
int main (){
int num,rem;
printf ("enter the value of number ");
scanf ("%i",&num);
while (num>0){
    rem=num%10;
     
    printf ("%i",rem);
num=num/10;
}
return 0;
}

No comments:

Post a Comment

print a multiplication table of any integer taking from user

 // print a multiplication table of any integer taking from user  #include "stdio.h" int main () { int n,mul,i; printf ("...