#javob
#while_9
#java
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("n = ");
double n = scanner.nextDouble();
int k = 1;
int t = 0;
while (!(k > n)) {
k *= 3;
t++;
System.out.println(t);
}
System.out.println("Yakuniy natija = " + t);
}
Telegram | ViktorinBot | Portfolio | Android | YouTube
#while_9
#java
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("n = ");
double n = scanner.nextDouble();
int k = 1;
int t = 0;
while (!(k > n)) {
k *= 3;
t++;
System.out.println(t);
}
System.out.println("Yakuniy natija = " + t);
}
Telegram | ViktorinBot | Portfolio | Android | YouTube