PHP ebook စာအုပ်လေးပါ
Programmin လေ့လာရင် English ကိုတော့ ရေးတတ် ဖတ်တတ်ဖို့တော့ လိုမယ်နော်
Programmin လေ့လာရင် English ကိုတော့ ရေးတတ် ဖတ်တတ်ဖို့တော့ လိုမယ်နော်
java သမားတွေ ပြန်လေ့လာကြည့်ကြ စာပြန်နွေးတာပေါ့ ရေးလဲ ရေးကြည့်ပါ practice များများလုပ်ဖို့လိုတယ် တကယ်တော်ချင်ရင်😍😍
👍1
java
import java.util.Scanner;
public class GuessingGame {
public static void main(String[] args) {
int secretNumber = (int) (Math.random() * 100); // Generate a random number between 0 and 99
int attempts = 0;
boolean hasWon = false;
Scanner scanner = new Scanner(System.in);
System.out.println("Welcome to the Guessing Game!");
System.out.println("I'm thinking of a number between 0 and 99.");
while (!hasWon) {
System.out.print("Take a guess: ");
int guess = scanner.nextInt();
attempts++;
if (guess < secretNumber) {
System.out.println("Too low! Try again.");
} else if (guess > secretNumber) {
System.out.println("Too high! Try again.");
} else {
hasWon = true;
System.out.println("Congratulations! You guessed the number in " + attempts + " attempts.");
}
}
scanner.close();
}
}
import java.util.Scanner;
public class GuessingGame {
public static void main(String[] args) {
int secretNumber = (int) (Math.random() * 100); // Generate a random number between 0 and 99
int attempts = 0;
boolean hasWon = false;
Scanner scanner = new Scanner(System.in);
System.out.println("Welcome to the Guessing Game!");
System.out.println("I'm thinking of a number between 0 and 99.");
while (!hasWon) {
System.out.print("Take a guess: ");
int guess = scanner.nextInt();
attempts++;
if (guess < secretNumber) {
System.out.println("Too low! Try again.");
} else if (guess > secretNumber) {
System.out.println("Too high! Try again.");
} else {
hasWon = true;
System.out.println("Congratulations! You guessed the number in " + attempts + " attempts.");
}
}
scanner.close();
}
}
java Beginner တွေအတွက် Telegram ChatGpt ကို ရေးခိုင်းပြီး လေ့လာကြရအောင် ဆရာသင်ပေးထားတဲ့ စာတွေကို ကိုယ်တကယ်ရမရ ကြည့်ကြအောင်
ပြီတော့ ဘယ်လိုရေးရလဲ
AI ရေးထားတဲ့ code တွေကို ကိုယ်ပိုင် edit လုပ်ကြည့်ကြပါ
ပြီတော့ ဘယ်လိုရေးရလဲ
AI ရေးထားတဲ့ code တွေကို ကိုယ်ပိုင် edit လုပ်ကြည့်ကြပါ
ဒီထဲမှာ Java လေ့လာချင်သူတွေ ရှိလားဗျ
Java ကို Basic ကနေ ကိုယ်ပိုင် Project တွေရေးနိုင်တဲ့အထိ Free သင်ပေးသွားပါမယ်
တူတူလေ့လာချင်တယ်ဆိုရင် Computer တစ်လုံးရှိရပါမယ်
Software Installation ကအက ရှင်းပြပေးပါမယ်
ပထမဆုံး စီစဥ်ထားတာက Basic Fondamental ကို အရင်ဆုံး စမ်းပြီးသင်ပေးပမယ်
Basic မှာ ဘာတွေသင်ပေးမှာလဲ ဆိုတာကို ညနေမှာ ပြောပြပေးပါမယ် အားလုံးပဲ ready ပြင်ထားကြနော်😝
Java ကို Basic ကနေ ကိုယ်ပိုင် Project တွေရေးနိုင်တဲ့အထိ Free သင်ပေးသွားပါမယ်
တူတူလေ့လာချင်တယ်ဆိုရင် Computer တစ်လုံးရှိရပါမယ်
Software Installation ကအက ရှင်းပြပေးပါမယ်
ပထမဆုံး စီစဥ်ထားတာက Basic Fondamental ကို အရင်ဆုံး စမ်းပြီးသင်ပေးပမယ်
Basic မှာ ဘာတွေသင်ပေးမှာလဲ ဆိုတာကို ညနေမှာ ပြောပြပေးပါမယ် အားလုံးပဲ ready ပြင်ထားကြနော်😝
❤10