Post Top Ad

Your Ad Spot

Pages

Saturday, 8 February 2020

Write Program For Reverse Of Integer Number

#include<stdio.h>
#include<conio.h>

int RevNo(int no)

     int i,res=0;

 for(i=no;no;i++)
  {
  res=res*10+no%10;
  no=no/10;
  
  }
  return res;
  
}
void main()

   printf("%d",RevNo(1235));
}

No comments:

Post a Comment

Post Top Ad

Your Ad Spot

Pages