Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
⚡1❤🔥1👍1🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
👍3⚡1❤🔥1🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2⚡1❤🔥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 ▶️
#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);
}
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2❤🔥1🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
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 ▶️
#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);
}
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2
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
#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 ▶️
#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);
}
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1🔥1