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

#javob
Kotlin dasturlash tilida

fun main() {
print("Boshlang'ich summani kiriting: ")
var s = readLine()!!.toDouble()
print("Foizni kiriting: ")
val p = readLine()!!.toDouble()
var oy = 0
val boshSum = 2 * s
while (s < boshSum) {
s += s * (p / 100)
oy++
println("$oy - Oy = $s So'm")
}
println("$oy oydan so'ng boshlang'ich qiymatidan 2 marta ko'p bo'ladi ")
println("$oy - oydagi pul miqdori = $s")
}

Telegram | Viktorina bot | Youtube
ideaIC-2021.2.3.exe
650.8 MB
intelliJ IDEA
Java dasturlash tili muhiti

Telegram | Viktorina bot | Youtube
jdk-17_windows-x64_bin.zip
170.8 MB
JDK - 17
Java dasturlash tili muhitida ishlash uchun o'rnatiladi

Telegram | Viktorina bot | Youtube
Media is too big
VIEW IN TELEGRAM
intelliJ IDEA
Java dasturlash tili muhitini o'rnatish videodarsligi

Telegram | Viktorina bot | Youtube
#savol_34

#javob_34
Java dasturlash tilida

public
static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("x = ");
int x = scanner.nextInt();
System.out.print("y = ");
int y = scanner.nextInt();
boolean oq = (x + y) % 2 == 1;
System.out.println(oq);
}

Telegram | Viktorina bot | Youtube
#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