Foydalanilgan adabiyotlar:
1.To’lqinov Jahongirmirzo ,,C++ tilini mustaqil o’rganuvchilar uchun”
2.Rahimov Q.S, Karimova Sh.T ,,C++ tilida dasturlash” o’quv qo’llanma// TATU, Toshkent 2017
3. M.Q.Berdimuratov, B.S.Samandarov, R.T.Djumamuratov,,C++ o’quv qo’llanma”
4. B. Boltayev, A.R. Azamatov ,,C++ tili asoslari”.Toshkent 2021
Internet manbalari:
1. www.cyber-form.ru
2.www.wikipedia.org
3.www.programmer.com
4.www.lib.samtuit.uz
5.www.n.ziyouz.com
Dastur Ko’di:
#include
using namespace std;
int main()
{
int h,g,n,s,l;
cout<<"Bu dastur avtomabilar hqaida ma'lumot beradi"<
cout<<"sizga qanday avtomabil kerak ";
cout<<"agar yuk mashinalri kerak bo'lsa 1 dan katta son kriting";
cout<<" Qanday avtomabil kerak";
cin>>n;
if(n<1){
cout<<"ma'lumot olish uchun kerakli no'merni kiriting";
cout<<"1_Nexia"<
cout<<"2_Matiz"<
cout<<"3_Damas"<
cout<<"4_ticko"<
cout<<"5_lasetti"<
cout<<" Qanday avtomabil kerak";
cin>>h;
switch(h){
case 1: cout<<"nexia avtomabil soni 4ta";goto m;break;
case 2: cout<<"mariz avtomabil soni 3ta "; goto j;break;
case 3: cout<<"damas avtomabil soni 5ta";goto d ;break;
case 4: cout<<"ticko avtomabil soni 4ta";goto t;break;
case 5: cout<<"lasetti avtomabil soni 2ta";goto f;break;
default: cout<< "shaharimizda bunday mashina turi qayt etilmagan";
}
}
if(n>1){
cout<<"1_Gaz 53"<
cout<<"2_kamaz"<
cout<<"3_Man"<
cout<<"4_Howo"<
cout<<" Qanday avtomabil kerak";
cin>>g;
switch(g){
case 1: cout<<"Gaz 53 avtomabil soni 4ta";goto k; break;
case 2: cout<<"kamazavtomabil soni 2ta"; goto x;break;
case 3: cout<<"Man avtomabil soni 3ta";goto y;break;
case 4: cout<<"Howo avtomabil soni 2ta";goto w;break;
default: cout<< "shaharimizda bunday mashina turi qayt etilmagan";
}
}
m:
cout<<"agar siz malumot olmoqchi bo'lsangiz 8dan katta son kriting__";
cin>>s;
if(s>8){
cout<<"nexia avtomabilari haqida ma'lumot olmoqdasiz"<cout<<" 40|A 527 RV"<
cout<<" 40|V 767 OV"<
cout<<" 40|N 967 CV"<
cout<<" 40|T 167 BV"<}
j:
cout<<"agar siz malumot olmoqchi bo'lsangiz 8dan katta son kriting__";
cin>>l;
if(l>8){
cout<<"matiz avtomabilari haqida ma'lumot olmoqdasiz"<cout<<" 40|A 527 RV"<
cout<<" 40|V 767 OV"<
cout<<" 40|N 967 CV"<
cout<<" 40|T 167 BV"<}
d:
cout<<"agar siz malumot olmoqchi bo'lsangiz 8dan katta son kriting__";
cin>>l;
if(l>8){
cout<<"Damas avtomabilari haqida ma'lumot olmoqdasiz"<cout<<" 40|A 527 RV"<
cout<<" 40|V 767 OV"<
cout<<" 40|N 967 CV"<
cout<<" 40|T 167 BV"<}
t:
cout<<"agar siz malumot olmoqchi bo'lsangiz 8dan katta son kriting__";
cin>>l;
if(l>8){
cout<<"tiko avtomabilari haqida ma'lumot olmoqdasiz"<cout<<" 40|A 527 RV"<
cout<<" 40|V 767 OV"<
cout<<" 40|N 967 CV"<
cout<<" 40|T 167 BV"<} f:
cout<<"agar siz malumot olmoqchi bo'lsangiz 8dan katta son kriting__";
cin>>l;
if(l>8){
cout<<"lasetti avtomabilari haqida ma'lumot olmoqdasiz"<cout<<" 40|A 527 RV"<
cout<<" 40|V 767 OV"<
cout<<" 40|N 967 CV"<
cout<<" 40|T 167 BV"<}
y:
cout<<"agar siz malumot olmoqchi bo'lsangiz 8dan katta son kriting__";
cin>>l;
if(l>8){
cout<<"Man avtomabilari haqida ma'lumot olmoqdasiz"<cout<<" 40|A 527 RV"<
cout<<" 40|V 767 OV"<
cout<<" 40|N 967 CV"<
cout<<" 40|T 167 BV"<}
k:
cout<<"agar siz malumot olmoqchi bo'lsangiz 8dan katta son kriting__";
cin>>l;
if(l>8){
cout<<"Gaz 53 avtomabilari haqida ma'lumot olmoqdasiz"<cout<<" 40|A 527 RV"<
cout<<" 40|V 767 OV"<
cout<<" 40|N 967 CV"<
cout<<" 40|T 167 BV"<}
w:
cout<<"agar siz malumot olmoqchi bo'lsangiz 8dan katta son kriting__";
cin>>l;
if(l>8){
cout<<"Howo avtomabilari haqida ma'lumot olmoqdasiz"<cout<<" 40|A 527 RV"<
cout<<" 40|V 767 OV"<
cout<<" 40|N 967 CV"<
cout<<" 40|T 167 BV"<}
x:
cout<<"agar siz malumot olmoqchi bo'lsangiz 8dan katta son kriting__";
cin>>l;
if(l>8){
cout<<"kamaz avtomabilari haqida ma'lumot olmoqdasiz"<cout<<" 40|A 527 RV"<
cout<<" 40|V 767 OV"<
cout<<" 40|N 967 CV"<
cout<<" 40|T 167 BV"<}
return 0;
}
Etiboringiz uchun
Raxmat
Muhamadjonov Sayidbek
Do'stlaringiz bilan baham: |