0

Uchta butun son berilgan. Shu sonlar orasidan nechta musbat son borligini aniqlovchi programma tuzilsin

Shunga yordamlashvorila iltimos

29th Jan 2022, 1:04 PM
Omina Shavkatova
Omina Shavkatova - avatar
14 Antworten
+ 3
juda osonku, berilgan sonlarni 0 dan katta ekanini tekshiring agar katta bo'lsa print qiling, kichik bo'lsa manfiy bo'ladi.
29th Jan 2022, 1:24 PM
Muhammad Ali
Muhammad Ali - avatar
+ 3
Ok thank you
29th Jan 2022, 1:40 PM
Omina Shavkatova
Omina Shavkatova - avatar
+ 2
If and Elif operatorlaridan foydalanib yozish kere man codeni yozdim tekshirib koʻrsam 3 ta musbot sonni chiqarib bermayapti
29th Jan 2022, 1:31 PM
Omina Shavkatova
Omina Shavkatova - avatar
+ 2
a = int(input("Birinchi sonni kiriting: ")) b = int(input("Ikkinchi sonni kiriting: ")) c = int(input("Uchinchi sonni kiriting: ")) if a and b >= 0 : print ("Kiritilgan raqamlar orasida 2 ta musbat son bor") elif b and c >= 0 or a and c >= 0: print ("Kiritilgan raqamlar orasida 2 ta musbat son bor") else: print ("Kiritilgan raqamlar orasida musbat raqamlar soni 3 ta")
29th Jan 2022, 1:33 PM
Omina Shavkatova
Omina Shavkatova - avatar
+ 2
Oxirini hoz yozudim baribir xato chiqvoti
29th Jan 2022, 1:34 PM
Omina Shavkatova
Omina Shavkatova - avatar
+ 1
Omina Shavkatova kodizni ham ko'rsata olasizmi
29th Jan 2022, 1:32 PM
Muhammad Ali
Muhammad Ali - avatar
+ 1
har birini alohida tekshiring, a and b >= 0 emas a >= 0 and b >= 0...
29th Jan 2022, 1:39 PM
Muhammad Ali
Muhammad Ali - avatar
+ 1
Js dami bu cod
11th Dec 2022, 10:52 AM
Burxoniddin Sotvoldiyev
Burxoniddin Sotvoldiyev - avatar
0
function myFunc(a,b,c) { if (a > 0 && b > 0 && c > 0) { console.log(`3ta musbat son bor`); } else if(a > 0 && b > 0 ||b > 0 && c > 0 || a > 0 && c > 0 ) { console.log(`2ta musbat son bor`); } else if(a > 0 || b > 0 || c > 0) { console.log(`1ta musbat son bor`); } } myFunc(1,2,3) mashi togri javob
4th Feb 2023, 1:15 PM
Mirjalol Xoliqov
0
Berilgan 5 ta son orasida nechta musbat, nechta manfiy va nechta nol qatnashganligini aniqlovchi dastur tuzing
14th Aug 2023, 12:07 PM
Jaloliddin Lapasov
Jaloliddin Lapasov - avatar
0
asdfgh hjhj
8th Sep 2023, 9:54 AM
BLACK HACKER
BLACK HACKER - avatar
0
int a = input.nextInt (); int b = input.nextInt (); int c =input.nextInt (); int d = 0; if (a == 0) d++; if (b == 0) d++; if (c == 0) d++; System.out.println (d + " ta nol bor");
26th Mar 2024, 12:35 PM
Mexriddin Odilov
Mexriddin Odilov - avatar
0
Uchta butun son berilgan. Shu sonlar orasidan nechta musbat son borligini aniqlovchi programma tuzilsin
6th Aug 2024, 5:42 PM
azizbek
0
Uchta butun son berilgan. Shu sonlar orasidan nechta musbat son borligini aniqlovchi programma tuzilsin
6th Aug 2024, 5:42 PM
azizbek