filmov
tv
Reverse a Number using user-defined Function in Nepali

Показать описание
The question is, write a program in c to reverse a given number using user-defined function. Here is its answer.
How Reverse of a Number gets Calculated ?
The very basic things to reverse a number are:
a.) Find the remainder of that number one by one until the number becomes equal to 0
b.) While finding the remainder, initialize the new value to a variable that holds reverse of the number
c.) Every time while initializing the new value to rev variable (that holds reverse of given number), don't forgot to multiply 10 with its previous value and add the remainder
How Reverse of a Number gets Calculated ?
The very basic things to reverse a number are:
a.) Find the remainder of that number one by one until the number becomes equal to 0
b.) While finding the remainder, initialize the new value to a variable that holds reverse of the number
c.) Every time while initializing the new value to rev variable (that holds reverse of given number), don't forgot to multiply 10 with its previous value and add the remainder