answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Write a shell programming to print the given number in reverse order?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you generate a palindrome from a given number?

You write the number and then follow it with the digits in reverse order.


How do you write a program that outputs a given characters in reverse?

write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)


Fox pro program to reverse the given number?

reverse programe in fox pro


Enter a number and draw a flow chart to get the reverse of the given number and the number is 435?

123


To write shell program to check the given number and its reverse are same?

echo "enter the number" if [ $# -ne 1 ] then echo "Usage: $0 number" echo " I will find reverse of given number" echo " For eg. $0 12321, I will print 12321" exit 1 fi n=$1 rev=0 sd=0 while [ $n -gt 0 ] do sd=`expr $n % 10` rev=`expr $rev \* 10 + $sd` n=`expr $n / 10` done echo "Reverse number is $rev"


How do you write a program to test if a given number is divisible by 6 in C programming?

if ( x % 6 == 0 ){ printf( "%d is divisible by 6", x ); } else { printf( "%d is not divisible by 6", x ); }


What can the reverse lookup be used to find?

The reverse lookup is a telephone number data base. Instead of looking up a phone number based on a given name, a name can be looked up based on a given phone number. It is useful when receiving phone calls from an unknown phone number.


What name is given to prime numbers that you can reverse to make another prime number?

A mirror prime.


How do you convert a number that consist of alphabet and number in reverse order?

To reverse a number, first convert the number to a string, then reverse the string. Given your number consists of alphanumeric characters, the number must already be a string so simply reverse the string: #include<string> using std::string; string reverse (const string& s) { string str {}; for (auto c : s) str.insert (str.begin(), c); return str; } int main () { std::cout << "Enter a number: "; string s {}; std::cin >> s; std::cout << "The number in reverse is: " << reverse (s); }


What do you do when you write 2 given numbers whose LCM if 24 is the number?

The easiest way is to write the number and a factor of the number. 12 and 24 have an LCM of 24.


Write the numeral that comes before the given cardinal number?

1055


How do you write the given number in decimal notation 8.810-3?

0.00881