في سؤال حاولت احله بس البرنامج مو قاعد يصير :wacko: ممكن اعرف وين الغلط
هاي هو السؤال
write a program that prompts the user to input a four-digit positive integer. the program then outputs the digits of the number, one digit per line.
for example if the input is 2584 the output is:
2
5
8
4
و هاي الحل
#include<iostream>
using namespace std;
int main()
{
int num;
cout<<" Enter a number of four positive digits ";
cin>>num;
num=num%10;
cout<<num<<endl;
num1=(num)%10;
cout<<num<<endl;
return 0;
}
