{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

revers num - while(x!=0 y=x z=z*10 y x=x/10 return z void...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Q : writ C++ function that reveres any number that entered from keyboard? #include<stdio.h> #include<iostream.h> double revers(int x) { int z=0,y;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: while(x!=0) { y=x%10; z=z*10+y; x=x/10; } return z; } void main() {int num; cin>>num; cout<<endl<<revers(num)<<endl; }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online