Hi hello. How do i make this program print out the digets of a number thats entered, twice? e.g. if entered 456, output should be 445566. Thanks, i know i have to use loop and the division stuff.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <iostream>
usingnamespace std;
int main()
{
int n,a,b,c;
cout << "enter a number";
cin >> n;
while(n!=0){
a=n%10;
}
}