TGTGInsighttelegram intelligenceLIVE / telegram public index
← Computer Programming
Computer Programming avatar

TGINSIGHT POST

Post #125

@cpp_sirius

Computer Programming

Visninger199Antall visninger
Publisert2. okt.02.10.2025, 17:46
Innhold

Innholdet i innlegget

// 90-100: A 10 // 80-90: B 10 // 70-80: C 10 // 60 - 70: D 10 // score<60: F // 99/10 = 9 // 91/10 = 9 // 81/10 = 8 // 89/10 = 8 // 100/10 = 10 int score, k; cin>>score; k = score / 10; switch (k) { case 10: cout<<"A"; break; case 9: cout<<"A"; break; case 8: cout<<"B"; break; case 7: cout<<"C";break; case 6: cout<<"D"; break; case 5: cout<<"F"; break; case 4: cout<<"F"; break; case 3: cout<<"F"; break; case 2: cout<<"F"; break; case 1: cout<<"F"; break; case 0: cout<<"F"; break; default: cout<<"Bunday baho yo'q"; break; }