PROGRAMMERS
Kanalga Telegram’da o‘tish
Guruh: @Cpp_java_dasturlash Android: @prog_mz_android Quiz bot: @programmersQuiz_bot Portfolio: @ProgrammersPortfolio Reklama: https://t.me/programmers_reklama/2 Kanal uchun taklif: @Mr_Max_Telegram @ZohidAbdullayev
Ko'proq ko'rsatish960
Obunachilar
-224 soatlar
Ma'lumot yo'q7 kunlar
-1930 kunlar
Postlar arxiv
960
#javob_java_boolean_25
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("x = ");
float x = scanner.nextFloat();
System.out.print("y = ");
float y = scanner.nextFloat();
System.out.println(x < 0 && y > 0);
}
Telegram | Viktorina bot | Portfolio
960
Assalomu aleykum Xurmatli dasturchilar. PROGRAMMERS kanalimizda savol - javob viktorinasini olib borayapmiz. Viktorinamizda berilayotgan savollar va javobllar yuqorida qolib ketganligini hisobga olgan holatda, viktorinamizdagi savol javoblarni @programmersQuiz_bot botiga joylab borayapmiz. Botga a'zo bo'ling. Hali savollar oldida ...
Botdagi Kotlin bobining Integer bo'limiga yangi savollarni va ularni javoblarini qo'shdik.
Viktorina bot
Telegram | Viktorina bot | Portfolio
960
#javob
#gita_10
Java dasturlash tilida
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
System.out.println(EKUB(a, b));
}
public static int EKUB(int a, int b) {
while (a != b) {
if (a > b) {
a -= b;
} else b -= a;
}
return a;
}
Telegram | Viktorina bot | Portfolio
960
#javob_java_boolean_24
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("a = ");
float a = scanner.nextFloat();
System.out.print("b = ");
float b = scanner.nextFloat();
System.out.print("c = ");
float c = scanner.nextFloat();
float d = b * b - 4 * a * c;
System.out.println(d > 0 || d == 0);
}
Telegram | Viktorina bot | Portfolio
960
#javob_java_boolean_23
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int a = n / 100;
int c = n % 10;
boolean bool = (a == c);
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
960
#javob_java_boolean_22
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
boolean bool = (a < b && b < c) || (a > b && b > c);
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
960
#include<iostream>
using namespace std;
int main(){
int n,m, count=0; char ch;
do{
cout<<"\n\n\nPlease enter n: "; cin>>n;
cout<<"Please enter m: "; cin>>m;
if(n>m){
for(int i=m; i<=n; i++){
if(i%5==0){
cout<<"Dividend for five is: "<<i<<endl;
count++;
}else if((n-m)<5){
cerr<<"There is Not Dividend for five."<<endl;
}
}
cout<<"Between "<<m<<" and "<<n<<" have "<<count<<" Dividend(s)"<<endl;
}
else{
cerr<<"M is bigger than N. N should be bigger than M. "<<endl;
}
cout<<"Wanna try again (y/n): "; cin>>ch;
}
while(ch=='y' || ch=='Y');
return 0;
}
Telegram | Viktorina bot | Portfolio
960
#javob_java_boolean_21
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
boolean bool = a < b && b < c;
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
