Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=41892
Postga havola
developer [323] [off]
Benyamin, # Benyamin (08.11.2018 / 23:17)
developer, O'qish joyiz qayer ? nechanchi kurs ?tatuff 1-kurs
1 daqiqa 13 soniyadan keyin yozdi:
shuni koringchi
developer, O'qish joyiz qayer ? nechanchi kurs ?tatuff 1-kurs
1 daqiqa 13 soniyadan keyin yozdi:
#include <iostream> using namespace std; int main() { int a,n; cin>>a; if(a>=100)cout<<"yuz"; else{ n=a/10; switch(n) { case 9:cout<<"to'qson ";break; case 8:cout<<"sakson ";break; case 7:cout<<"yetmish ";break; case 6:cout<<"oltmish ";break; case 5:cout<<"ellik ";break; case 4:cout<<"qirq ";break; case 3:cout<<"o'ttiz ";break; case 2:cout<<"yigirma";break; case 1:cout<<"o'n";break; default:break; } a=a%10; switch(a) { case 9:cout<<"to'qqiz ";break; case 8:cout<<"sakkiz";break; case 7:cout<<"yetti ";break; case 6:cout<<"olti ";break; case 5:cout<<"besh ";break; case 4:cout<<"to'rt ";break; case 3:cout<<"uch ";break; case 2:cout<<"ikki";break; case 1:cout<<"bir";break; case 0:cout<<"nol"; default:break; } } return 0; }
shuni koringchi