Whats a problem? #include<iostream> #include<conio> void main () { int num; int
ID: 3617048 • Letter: W
Question
Whats a problem?#include<iostream>
#include<conio>
void main ()
{
int num;
int sum;
int n, rev;
clrscr();
cout << "Enter any numbers from 1 to10";
cin >> num;
sum=0;
rev=0;
cout << "Individual digits of thenumber is " << num <<": ";
while(num>0)
{n=num%10;
rev =rev*10+n;
num =num/10;}
while(rev>0)
{n=rev%10;
cout<< n << " ";
sum+=n;
rev =rev/10;
}
cout<<" Sum of the digits are: " << sum;
getch();
return0;
system("pause");
}