Write a program to find the reverse of a given number in C++ #c++ #cpp
Write a program to find the reverse of a given number in C++ #c++ #cpp
// // main.cpp // reverseNumber // // Created by SHIVAM SINGH on 19/07/22. // #include <iostream> using namespace std; int main() { int n; cout<<"Input a number : "<<endl; cin>>n; cout<<"Number Input : "<< n << endl; int x=0 , temp; while(n>0) { temp = n % 10 ; x = ( x*10 ) + temp ; n = n / 10 ; } cout<<"Number output : "<< x << endl; return 0; }
Thanks for reading this blog. Hope you get satisfied with the blog and definitely this blog must have valued your time and effort of reading.
Take a time to connect our other digital creations such as Instagram , Facebook and Youtube.
Social Media Links of Tech DCode :
YouTube : https://www.youtube.com/channel/UCjJnEdeugftBwQ3yMuD4B_A
Instagram : https://www.instagram.com/thetechdcode/
Facebook Page : https://www.facebook.com/thetechdcode
Twitter : https://twitter.com/thetechdcode
Telegram Channel : https://t.me/thetechdcode
Tech DCode Linktree : https://linktr.ee/thetechdcode
My Personal Handles : https://linktr.ee/virtualshivamin
Social Media Links of SHIVAM SINGH (OWNER) :
Instagram : https://www.instagram.com/virtualshivamin/
Facebook Page : https://www.facebook.com/virtualshivamin/
Twitter : https://twitter.com/virtualshivamin/
Personal Linktree : https://linktr.ee/virtualshivamin