Public: string shakli


Download 13.7 Kb.
Sana05.05.2023
Hajmi13.7 Kb.
#1432713
Bog'liq
Документ Microsoft Word


27-variant Xasanov Ibrohim bajardi
1.
#include
using namespace std;
class Geometriya {
public:
string shakli;
string muntazamligi;
string rangi;
string balandligi;
string eni;
};
int main(){
Geometriya shakl;
cout<<"Shakli - ";
cin>>shakl.shakli;
cout<<"Muntazamligi - ";
cin>>shakl.muntazamligi;
cout<<"Rangi - ";
cin>>shakl.rangi;
cout<<"balandligi - ";
cin>>shakl.balandligi;
cout<<"Eni - ";
cin>>shakl.eni;
if(shakl.muntazamligi=="ha") shakl.muntazamligi="muntazam";
else shakl.muntazamligi="muntazam emas";
cout<<"Shakli "<return 0;
}

2.

#include


using namespace std;
class Firma {
public:
string familyasi;
string ismi;
string address;
};
//Abdullayev Abduaziziov Abdualimov
int main(){
Firma shaxs[6];
for(int i=1;i<=3;i++) {
cout<cin>>shaxs[i].familyasi;
cout<cin>>shaxs[i].ismi;
cout<cin>>shaxs[i].address;
}
cout<for(int i=1;i<=3;i++) {
if(shaxs[i].familyasi==" Abdullayev " shaxs[i].familyasi==" Abduazizov " shaxs[i].familyasi==" Abdualimov ") cout<else cout<}
return 0;
}

Download 13.7 Kb.

Do'stlaringiz bilan baham:




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