1.03K subscribers
1.77K photos
420 videos
676 files
3.85K links
Download Telegram
RegistrationActivity.kt

📱Telegram | ViktorinBot | Portfolio | Android | YouTube ▶️
Please open Telegram to view this post
VIEW IN TELEGRAM
❤‍🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
1❤‍🔥1👍1🔥1
Media is too big
VIEW IN TELEGRAM
Kotlin dasturlash tili bo'yicha tayyorlangan video darslik.

Dasturlar (masalalar) to'plami

#kotlin
#examples

📱Telegram | ViktorinBot | Portfolio | Android | YouTube ▶️
Please open Telegram to view this post
VIEW IN TELEGRAM
👍31❤‍🔥1🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
👍21❤‍🔥1🔥1
#javob
#while_1
#java

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("A = ");
int a = scanner.nextInt();
System.out.print("B = ");
int b = scanner.nextInt();
while (a > b) {
a -= b;
}
System.out.println(a);
}

📱Telegram | ViktorinBot | Portfolio | Android | YouTube ▶️
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2❤‍🔥1🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
#javob
#while_1
#kotlin

fun main() {
print("A = ")
var a = readln().toInt()
print("B = ")
val b = readln().toInt()
while (a > b) {
a -= b
}
println(a)
}

📱Telegram | ViktorinBot | Portfolio | Android | YouTube ▶️
Please open Telegram to view this post
VIEW IN TELEGRAM
1❤‍🔥1👍1🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
2👍1🔥1
#javob
#while_2
#java

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("A = ");
int a = scanner.nextInt();
System.out.print("B = ");
int b = scanner.nextInt();
int t = 0;
while (a > b) {
a -= b;
t++;
}
System.out.println(t);
}

📱Telegram | ViktorinBot | Portfolio | Android | YouTube ▶️
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2
Please open Telegram to view this post
VIEW IN TELEGRAM
👍3❤‍🔥1🔥1
#javob
#while_2
#kotlin

fun main() {
print("A = ")
var a = readln().toInt()
print("B = ")
val b = readln().toInt()
var t = 0
while (a > b) {
a -= b
t++
}
println(t)
}

📱Telegram | ViktorinBot | Portfolio | Android | YouTube ▶️
Please open Telegram to view this post
VIEW IN TELEGRAM
👍21❤‍🔥1🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
👍21🔥1
#javob
#while_3
#java

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("N = ");
int n = scanner.nextInt();
System.out.print("K = ");
int k = scanner.nextInt();
int t = 0;
while (n > k) {
n -= k;
t++;
}
System.out.println("Butun qismi = " + t);
System.out.println("Qoldiq = " + n);
}

📱Telegram | ViktorinBot | Portfolio | Android | YouTube ▶️
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1🔥1
#javob
#while_3
#kotlin

fun main() {
print("N = ")
var n = readln().toInt()
print("K = ")
val k = readln().toInt()
var t = 0
while (n > k) {
n -= k
t++
}
println("Butun qismi = $t")
println("Qoldiq = $n")
}

📱Telegram | ViktorinBot | Portfolio | Android | YouTube ▶️
Please open Telegram to view this post
VIEW IN TELEGRAM
❤‍🔥1👍1
Please open Telegram to view this post
VIEW IN TELEGRAM
1👍1
#javob
#while_4
#java

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int power = 1;
boolean isPowerOfThree = false;
while (power <= n) {
if (power == n) {
isPowerOfThree = true;
break;
}
power *= 3;
}
if (isPowerOfThree) {
System.out.println(n + " 3 ning darajasi.");
} else {
System.out.println(n + " 3 ning darajasi emas.");
}
}

📱Telegram | ViktorinBot | Portfolio | Android | YouTube ▶️
Please open Telegram to view this post
VIEW IN TELEGRAM
❤‍🔥11👍1
Please open Telegram to view this post
VIEW IN TELEGRAM
❤‍🔥1👍1🔥1