السوال:
Write the program that work to strip off the digits one at a time from the integer that enter by user and then “accumulate” them on reverse in another integer:
والسوال يجب فيه استخدام loop ولكن لم استطع استعمالها
محاولتى
#include <iostream>
using namespace std;
int main()
{ int a,b,c,d;
cout<<"Enter a positive integer: ";
cin>>a,b,c,d;
cout<<d,c,b,a;
return 0;
}
الاوت بوت يجب ان يكون مقراب لهذا الشكل
Enter a positive integer: 123456
The reverse is 654321
وايضاا هذا السوال لم افهم المطلوب منه ياليت احد يوضح لى
شرح لاحل
) Writes the program that prints a triangular multiplication table Begins the first column of 1x1 and the second column of 2x2 and so on until the last column is contains multiplied the value entered by the user in the itself only. The number of rows is equal to value that entered by user

