New Technology is Common, New thinking is rare
Download Now
#include <stdio.h> int main() { int no, r = 0; printf("Type a number: "); scanf("%d",&no); while (no > 0) { r = r * 10; r = r + no%10; no = no/10; } printf("Reversed number is = %d: ", r); return 0; }
Post a Comment
No comments:
Post a Comment