7-hafta topshiriqlari(Boymurodov G'iyosiddin) Nazorat savollari
Download 53.95 Kb. Pdf ko'rish
|
2 5391273881740773964
D S 7-hafta topshiriqlari(Boymurodov G'iyosiddin)
Nazorat savollari 4.13. Belgining raqamli ekanligini tekshirish uchuna digit or a letter funksiyasidan foydalanamiz. 4.14. Harfni kichik harfga yoki katta harfga aylantirish uchun a lower-case letter va a uppercase letter dan foydalanamiz.
Test 20. A
21. A 22. E
23. E 24. A
25. A 26. A
27. B 28. C
29. C 30. B
31. A 32. A
33. C 34. E
35. A 36. A
37. A 38. A
Dasturlash masalalari 1. #include #include using namespace std; int main() { string message = "natija"; cout <<"message satrining uzunligi ==> "<< message.length() << endl; cout <<"message satrining 0 indeksdagi belgisi ==> "<< message.at(0) < 2 #include #include using namespace std; int main() { string shahar1, shahar2, shahar3; cout <<"Birinchi shaharni kiriting:"; getline(cin ,shahar1); cout<<"Ikkinchi shaharni kiriting:"; getline(cin,shahar2); cout<<"Uchinchi shaharni kiriting:"; getline(cin, shahar3); cout<<"shaharlar alifbo tartibiga ko'ra-"; if(shahar1>shahar2 ) cout< {
if(shahar2>shahar3) { if(shahar1>shahar3) cout< else
} 3 4. #include #include #include using namespace std; int main() { string M1="Matematika 1 kurs"; string I3="Axborot texnalogiyalari 3 kurs"; string k3="Noaniq yo'nalish"; string M5="Bunday kurs yo'q";
getline(cin , M1); cout<< "Matematika 1 kurs"< getline( cin, I3);
cout<<"Axborot texnaligiyalari 3 kurs"; getline( cin ,k3);
cout<<"Noaniq yo'nalish"; getline(cin, M5);
cout<<"Bunday kurs yo'q"; }
5
#include using namespace std; int main() { double R,y,x; cin>>x>>y; R=fabs(sqrt(sin(y)*sin(y)+6.835)+exp(x)); cout<<"R="< }
8 #include using namespace std; int main() { double G,n,y; cin>>n>>y; G=n*(y+3.5)+sqrt(y); cout<<"G="< } Download 53.95 Kb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling