3 دورة سي بلس بلس
using namespace std;
int main()
{
//if - while- do while- for loop - switch
int x=0;
while (x++ <=9)
{
int y=0;
while(y++<=9)
{
cout<<x<<" : "<<y<<endl;
}
}
int y=10;
do{
cout<<"hello"<<endl;
y--;
if(y==5){
break;
}
}
while(y>=1);
int x=1;
// x++ print - fix
// ++x fix - print
// x-- print - fix
// --x fix - print
// continue break
int number;
while(true)
{
cout<<"
enter the number : ";
cin>>number;
cout<<x<<" : "<<number<<endl;
x++;
if (number == 0 )
{
break;
}
}
}