Dasturlash amaliy ish Guruh: 052-21 guruh talabasi Bajardi: Xamrakulov Aziz Tekshirdi: S. Saidov


Download 133.34 Kb.
Sana25.04.2023
Hajmi133.34 Kb.
#1396269
Bog'liq
Xamrakulov Azizva-1T


O‘ZBEKISTON RESPUBLIKASI AXBOROT TEXNOLOGIYALARI VA


KOMMUNIKATSIYALARINI RIVOJLANTIRISH VAZIRLIGI
MUHAMMAD AL-XORAZMIY NOMIDAGI
TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI


Dasturlash 1
Amaliy ish 2
Guruh: 052-21 guruh talabasi
Bajardi: Xamrakulov Aziz
Tekshirdi: S.Saidov


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();
}

Download 133.34 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling