C program to reverse a number

Problem statement

Write a program to reverse a number using loop.
input1 = 1234

Then answer: output1 = 4321

Write a C program to reverse a number.

Output

 
 

Problem statement

Write a program to take 4 digit any number as input from the user and reverse that number but only using operators(or without using any function)

Write a C program to reverse 4 digit number only with help of operators or without using function/loop

Output

Explanation

Help others by sharing the content!