1.02K subscribers
1.77K photos
420 videos
676 files
3.85K links
Download Telegram
#savol_35

#javob_35
Java dasturlash tilida

public
static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("x1 = ");
int x1 = scanner.nextInt();
System.out.print("y1 = ");
int y1 = scanner.nextInt();
System.out.print("x2 = ");
int x2 = scanner.nextInt();
System.out.print("y2 = ");
int y2 = scanner.nextInt();
boolean birXil = (((x1 + y1) % 2 == 1) && ((x2 + y2) % 2 == 1)) ||
(((x1 + y1) % 2 == 0) && ((x2 + y2) % 2 == 0));
System.out.println(birXil);
}

Telegram | Viktorina bot | Youtube
👍1
#savol_36

#javob_36
Java dasturlash tilida

public
static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("x1 = ");
int x1 = scanner.nextInt();
System.out.print("y1 = ");
int y1 = scanner.nextInt();
System.out.print("x2 = ");
int x2 = scanner.nextInt();
System.out.print("y2 = ");
int y2 = scanner.nextInt();
boolean ruh = ((x1 == x2) || (y1 == y2));
System.out.println(ruh);
}

Telegram | Viktorina bot | Youtube
#savol_37

#javob_37
Java dasturlash tilida

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("x1 = ");
int x1 = scanner.nextInt();
System.out.print("y1 = ");
int y1 = scanner.nextInt();
System.out.print("x2 = ");
int x2 = scanner.nextInt();
System.out.print("y2 = ");
int y2 = scanner.nextInt();
boolean shox = ((x1 == x2 - 1) && (y1 == y2 + 1)) ||
((x1 == x2) && (y1 == y2 + 1)) ||
((x1 == x2 + 1) && (y1 == y2 + 1)) ||
((x1 == x2 - 1) && (y1 == y2)) ||
((x1 == x2 + 1) && (y1 == y2)) ||
((x1 == x2 - 1) && (y1 == y2 - 1)) ||
((x1 == x2) && (y1 == y2 - 1)) ||
((x1 == x2 + 1) && (y1 == y2 - 1));
System.out.println(shox);
}

Telegram | Viktorina bot | Youtube
#savol_38

#javob_38
Java dasturlash tilida

public
static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("x1 = ");
int x1 = scanner.nextInt();
System.out.print("y1 = ");
int y1 = scanner.nextInt();
System.out.print("x2 = ");
int x2 = scanner.nextInt();
System.out.print("y2 = ");
int y2 = scanner.nextInt();
boolean fil = ((Math.abs(x1 - x2)) == (Math.abs(y1 - y2)));
System.out.println(fil);
}

Telegram | Viktorina bot | Youtube
#savol_39

#javob_39
Java dasturlash tilida

public
static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("x1 = ");
int x1 = scanner.nextInt();
System.out.print("y1 = ");
int y1 = scanner.nextInt();
System.out.print("x2 = ");
int x2 = scanner.nextInt();
System.out.print("y2 = ");
int y2 = scanner.nextInt();
boolean farzin = (((Math.abs(x1 - x2)) == (Math.abs(y1 - y2))) ||
((x1 == x2) || (y1 == y2)));
System.out.println(farzin);
}

Telegram | Viktorina bot | Youtube
#savol_40

#javob_40
Java dasturlash tilida

public
static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("x1 = ");
int x1 = scanner.nextInt();
System.out.print("y1 = ");
int y1 = scanner.nextInt();
System.out.print("x2 = ");
int x2 = scanner.nextInt();
System.out.print("y2 = ");
int y2 = scanner.nextInt();
boolean ot = (((Math.abs(x1 - x2) == 1)) && (Math.abs(y1 - y2) == 2) ||
((Math.abs(x1 - x2) == 2)) && (Math.abs(y1 - y2) == 1));
System.out.println(ot);
}

Telegram | Viktorina bot | Youtube
ColorMania 5.1 + Portable.rar
1.8 MB
Ranglarni aniqlaydigan programma
android-studio-2020.3.1.25-windows.exe
914.7 MB
Android studio (Windows uchun, oxirgi versiyasi)

Telegram | Viktorina bot | Youtube
#savol_cpp_begin_31
Temperatura Tf Farengeytda berilgan. Temperatura qiymatini Tc gradus selsiyga o'tkazuvchi dastur tuzing?

Tc = (Tf - 32) * 5 / 9

#javob_cpp_begin_31
#include <iostream>
#include <math.h>
using namespace std;
int main(){
double Tf, Ts;
cout << "Farengeyt gradus kiriting = ";
cin >> Tf;
Ts = (Tf - 32) * 5 / 9;
cout << "Selsiy = " << Ts;
}

Telegram | Viktorina bot | Youtube
Media is too big
VIEW IN TELEGRAM
Java - Kiritilgan sonning raqamlar yig'indisini topuvchi dastur

Telegram | Viktorina bot | YouTube