Untitled
#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int n, n1, b; n1 = 0; b = 0; cout<<"Jep nje numer te plote \n"; cin>>n; while(n > 0) { b = n % 10; n1 = n1 * 10 + b; n = n / 10; } cout<<"Numri pas konvertimit eshte: "<<n1<<endl; system("PAUSE"); return EXIT_SUCCESS; }
Leave a Comment