fun main() {
val scanner = Scanner(System.
in)print("a = ")
val a = scanner.nextInt()
print("b = ")
val b = scanner.nextInt()
print("c = ")
val c = scanner.nextInt()
print("d = ")
val d = scanner.nextInt()
if (a == b && b == c) {
println(4)
} else if (a == c && c == d) {
println(2)
} else if (b == c && c == d) {
println(1)
} else {
println(3)
}
}
Telegram | Viktorina bot | Portfolio
Please open Telegram to view this post
VIEW IN TELEGRAM
β‘1π1π1π1
Forwarded from γ
€
Telegram
Programming languages
Loading...
Please open Telegram to view this post
VIEW IN TELEGRAM
β€βπ₯1β‘1π1
fun main() {
val scanner = Scanner(System.
in)print("a = ")
val a = scanner.nextInt()
print("b = ")
val b = scanner.nextInt()
print("c = ")
val c = scanner.nextInt()
val ab = Math.abs(b - a)
val ac = Math.abs(c - a)
if (ab > ac) {
println(b)
} else {
println(c)
}
}
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
β€βπ₯2π2
14-yanvar Vatan himoyachilari kuni muborak boΚ»lsin. Yurtimiz tinch osmonimiz musaffo boΚ»lsin. Mustaqilligimiz abadiy boΚ»lsin
Hurmat bilan PROGRAMMERS kanali
Hurmat bilan PROGRAMMERS kanali
π3π2β‘1
fun main() {
val scanner = Scanner(System.
in)print("x = ")
val x = scanner.nextInt()
print("y = ")
val y = scanner.nextInt()
if (x == 0 && y == 0) {
println(0)
} else if (x > 0 && y == 0) {
println(1)
} else if (x == 0 && y > 0) {
println(2)
} else {
println(3)
}
}
Telegram | Viktorina bot | Portfolio
Please open Telegram to view this post
VIEW IN TELEGRAM
π3π2π2π₯1
Please open Telegram to view this post
VIEW IN TELEGRAM
π3π₯°1π1π1
Forwarded from Fintech - JobsοΈ
Dasturlash uchun qanday noutbook kerak?
β Bu savol bizga juda ko'p marta berilgan. Bu safar esa buni yana post qilishga qaror qildik.
β Quyida kompyuter xarakteristikalari bilan tanishing:
β’ Sistema:
Windows 10 (x64)
β’ Protsessor:
πΉ Minimal β Intel i3
πΈ Maslahat β Intel i5
β’ OZU (RAM):
πΉ Minimal β 4Gb
πΈ Maslahat β 8/16 Gb
β’ Videokarta:
πΉ Minimal β nVidia GeForce 750/950/1050
πΈ Maslahat β nVidia GeForce 780/980/1080/2080
β’ SSd (xotira):
πΉ Minimal β 256 Gb
πΈ Maslahat β 512Gb
P.s ) Va bunday turdagi Noutbooklar o'rtacha narxda 450$ - 1000$ gacha hisoblanadi
π @IThayoti
β Bu savol bizga juda ko'p marta berilgan. Bu safar esa buni yana post qilishga qaror qildik.
β Quyida kompyuter xarakteristikalari bilan tanishing:
β’ Sistema:
Windows 10 (x64)
β’ Protsessor:
πΉ Minimal β Intel i3
πΈ Maslahat β Intel i5
β’ OZU (RAM):
πΉ Minimal β 4Gb
πΈ Maslahat β 8/16 Gb
β’ Videokarta:
πΉ Minimal β nVidia GeForce 750/950/1050
πΈ Maslahat β nVidia GeForce 780/980/1080/2080
β’ SSd (xotira):
πΉ Minimal β 256 Gb
πΈ Maslahat β 512Gb
P.s ) Va bunday turdagi Noutbooklar o'rtacha narxda 450$ - 1000$ gacha hisoblanadi
π @IThayoti
π8
fun main() {
val scanner = Scanner(System.
in)print("x = ")
val x = scanner.nextInt()
print("y = ")
val y = scanner.nextInt()
if (x > 0) {
if (y > 0) {
println(1)
} else {
println(4)
}
} else if (x < 0) {
if (y > 0) {
println(2)
} else {
println(3)
}
}
}
Telegram | Viktorina bot | Portfolio
Please open Telegram to view this post
VIEW IN TELEGRAM
β‘2π2β€βπ₯1π―1π¨βπ»1
Please open Telegram to view this post
VIEW IN TELEGRAM
π€©2π1π₯1
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
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
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
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
Forwarded from γ
€
<algorithm>
telegram: https://t.iss.one/Programming_languagess
<oop><database>
telegram: https://t.iss.one/programming_languages_oop
youtube: https://youtube.com/channel/UCrmSrp6q_5QL-xINuCdKocQ
creator: https://t.iss.one/firewallcpl
telegram: https://t.iss.one/Programming_languagess
<oop><database>
telegram: https://t.iss.one/programming_languages_oop
youtube: https://youtube.com/channel/UCrmSrp6q_5QL-xINuCdKocQ
creator: https://t.iss.one/firewallcpl
Telegram
Programming languages
Loading...
π5β‘1