1.01K subscribers
1.77K photos
420 videos
677 files
3.85K links
Download Telegram
Please open Telegram to view this post
VIEW IN TELEGRAM
🀩2πŸ‘1πŸ”₯1
🟒#javob_kotlin_if_23

fun main() {
val scanner = Scanner(System.in)
print("x1 = ")
val x1 = scanner.nextInt()
print("y1 = ")
val y1 = scanner.nextInt()
print("x2 = ")
val x2 = scanner.nextInt()
print("y2 = ")
val y2 = scanner.nextInt()
print("x3 = ")
val x3 = scanner.nextInt()
print("y3 = ")
val y3 = scanner.nextInt()
var x4 = 0
var y4 = 0
if (x1 == x2) {
x4 = x3
} else if (x1 == x3) {
x4 = x2
} else if (x2 == x3) {
x4 = x1
}
if (y1 == y2) {
y4 = y3
} else if (y1 == y3) {
y4 = y2
} else if (y2 == y3) {
y4 = y1
}
println("$x4 $y4")
}

Telegram | Viktorina bot | Portfolio
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2❀1πŸ†1
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘3❀‍πŸ”₯1πŸ‘¨β€πŸ’»1
🟒#javob_kotlin_if_24

fun main() {
val scanner = Scanner(System.in)
print("x = ")
val x = scanner.nextFloat()
if (x > 0) {
println(2 * Math.sin(x.toDouble()))
} else {
println(x - 6)
}
}

Telegram | Viktorina bot | Portfolio
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2❀‍πŸ”₯1πŸ‘1
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸŽ‰2πŸ‘1🐳1πŸ†1
🟒#javob_kotlin_if_25

fun main() {
val scanner = Scanner(System.in)
print("x = ")
val x = scanner.nextFloat()
if (x < -2 || x > 2) {
println(2 * x)
} else {
println(-3 * x)
}
}

Telegram | Viktorina bot | Portfolio
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2πŸ‘2❀‍πŸ”₯1
Please open Telegram to view this post
VIEW IN TELEGRAM
🀩2❀‍πŸ”₯1πŸ‘1
🟒#javob_kotlin_if_26

fun main() {
val scanner = Scanner(System.in)
print("x = ")
val x = scanner.nextFloat()
if (x <= 0) {
println(-x)
} else if (x > 0 && x < 2) {
println(x * x)
} else {
println(4)
}
}

Telegram | Viktorina bot | Portfolio
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘3πŸ‘1πŸ†1
Please open Telegram to view this post
VIEW IN TELEGRAM
❀2πŸ‘1πŸ”₯1
🟒#javob_kotlin_if_27

fun main() {
val scanner = Scanner(System.in)
print("x = ")
val x = scanner.nextFloat()
if (x < 0) {
println(0)
} else if (x.toInt() % 2 == 0) {
println(1)
} else {
println(-1)
}
}

Telegram | Viktorina bot | Portfolio
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2❀1πŸ†1
πŸ’ πŸ’ πŸ’ 
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 C++ bobiga yangi Boolean bo'limiga yangi savollar va ularning javoblarini qo'shdik.

Viktorina bot

Telegram | Viktorina bot | Portfolio
πŸ‘2πŸ†2πŸ”₯1
Please open Telegram to view this post
VIEW IN TELEGRAM
❀1πŸ‘1πŸ†1πŸ‘¨β€πŸ’»1
🟒#javob_kotlin_if_28

fun main() {
val scanner = Scanner(System.in)
print("n = ")
val n = scanner.nextInt()
if (n % 4 == 0 && n % 100 != 0 || n % 400 == 0) {
println(366)
} else println(365)
}

Telegram | Viktorina bot | Portfolio
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘1πŸ‘1πŸ†1
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘1πŸ”₯1πŸ‘1
🟒#javob_kotlin_if_29

fun main() {
val scanner = Scanner(System.in)
print("n = ")
val n = scanner.nextInt()
if (n % 2 == 0 && n > 0) {
println("Musbat juft son")
} else if (n % 2 != 0 && n > 0) {
println("Musbat toq son")
} else if (n % 2 != 0) {
println("Manfiy toq son")
} else if (n < 0) {
println("Manfiy juft son")
} else {
println("Nolga teng")
}
}

Telegram | Viktorina bot | Portfolio
πŸ‘2πŸ‘1πŸ‘¨β€πŸ’»1
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2❀1πŸ†1
#javob_kotlin_if_30

fun main() {
val scanner = Scanner(System.in)
print("1 - 999 oraliqdagi son kiriting: ")
val n = scanner.nextInt()
if ((n % 2 == 0) && (n > 9) && (n < 100)) {
println("Ikki xonali juft son")
} else if (n % 2 != 0 && n > 9 && n < 100) {
println("Ikki xonali toq son")
} else if (n % 2 != 0 && n > 99 && n < 1000) {
println("Uch xonali toq son")
} else {
println("Uch xonali juft son")
}
}

Telegram | Viktorina bot | Portfolio
πŸ‘3πŸ”₯1πŸ‘1