Mavzu: TARMOQLANISH VA UZILISHLARNI TASHKIL ETISH OPERATORLARI.
Masala raqami:1
Masala sharti: #include using namespace std;
int main(){
int n,m,c,n1,Y;
cout<<"Xamrakulov Aziz\n";
cout<<"c : ";cin>>c;
cout<<"m : ";cin>>m;
cout<<"n : ";cin>>n;
n1=n+1;
if (n1>0){
Y=m*m*n+1-c;
cout< }
if(n1<=0){
Y=(m+n)*(m+n)+c*m*m;
cout< }
}
Masala raqami:1
Masala sharti: Yoshni sonda aniqlovchi 20-100 gacha butun son berilgan. Son kirirtilganda yoshni unga mos so’zlarda ifodalovchi dastur tuzilsin. (“yigirma yosh”, “qirq uch yosh” va hk)
#include using namespace std;
int main(){
int N;
cout<<"Xamrakulov Aziz\n";
cout<<"1 dan 7 gacha son tanlang"<cin>>N;
switch(N){
case 1: cout<<"Dushanba\n";break;
case 2: cout<<"Seshanba\n";break;
case 3: cout<<"Chorshanba\n";break;
case 4: cout<<"Payshanba\n";break;
case 5: cout<<"Juma\n";break;
case 6: cout<<"Shanba\n";break;
case 7: cout<<"Yakshanba\n";break;
default: cout<<"Xato\n";break;}
main();
}