Dastur ishga tushganda ekranda chiqadigan natijani toping?
π± Telegram | ViktorinBot | Portfolio | Android | YouTube βΆοΈ
Please open Telegram to view this post
VIEW IN TELEGRAM
π2π₯2β‘1
Dastur ishga tushganda ekranda chiqadigan natijani toping?
π± 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
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