ど初心者メモ:
2の2乗を8回行う。
public class Main{
public static void main(String[] args) {
int x = 1;
for(int i = 1; i <= 8; i++) {
x *= 2;
System.out.println("2の" + i + "乗は" + x );
}
}
}
Javaを使えるようになるのだろうか....はぁ....
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 3 years have passed since last update.
ど初心者メモ:
2の2乗を8回行う。
public class Main{
public static void main(String[] args) {
int x = 1;
for(int i = 1; i <= 8; i++) {
x *= 2;
System.out.println("2の" + i + "乗は" + x );
}
}
}
Javaを使えるようになるのだろうか....はぁ....
Register as a new user and use Qiita more conveniently
Go to list of users who liked