Write a program that prompts the user to enter an integer and then checks if it is positive, negative, or zero.
Write a program that prompts the user to enter a number and then checks if it is a multiple of 3.
Write a program that prompts the user to enter two integers and then checks if the first integer is a multiple of the second integer.
Write a program that prompts the user to enter a year and then checks if it is a leap year.
Write a program that prompts the user to enter a character and then checks if it is a letter.
Write a program that prompts the user to enter a number and then checks if it is prime.
Write a program that prompts the user to enter a string and then checks if it is a palindrome.
Write a program that prompts the user to enter three numbers and then checks if the sum of any two of them is equal to the third.
Write a program that prompts the user to enter an integer and then checks if it is even or odd.
Write a program that prompts the user to enter a number and then checks if it is a perfect square.
Write a program that prompts the user to enter a character and then checks if it is a digit.
Write a program that prompts the user to enter a string and then checks if it is a palindrome ignoring case.
Write a program that prompts the user to enter three numbers and then checks if they form a Pythagorean triple (a^2 + b^2 = c^2).
Write a program that prompts the user to enter two integers and then checks if their sum is even.
Write a program that prompts the user to enter a number and then checks if it is a power of two.
Write a program that prompts the user to enter two characters and then checks if they are both uppercase letters.
Write a program that prompts the user to enter a string and then checks if it contains the word "Java".
Write a program that prompts the user to enter a number and then checks if it is a perfect number (the sum of its divisors equals the number itself).
Write a program that prompts the user to enter a year and then checks if it is a leap year using the Gregorian calendar rule.
Write a program that prompts the user to enter a number and then checks if it is a Fibonacci number.
Write a program that prompts the user to enter a string and then checks if it is a pangram (contains every letter of the alphabet).
Write a program that prompts the user to enter a year, month, and day, and then checks if the date is valid.
Write a program that prompts the user to enter a number and then checks if it is a narcissistic number (the sum of its digits raised to the power of the number of digits equals the number itself).
Write a program that prompts the user to enter three integers and then checks if they form a Pythagorean triple in any order (a^2 + b^2 = c^2).
Write a program that prompts the user to enter a string and then checks if it is a palindrome ignoring punctuation and spaces.
Write a program that prompts the user to enter a number and then checks if it is a perfect cube.
Write a program that prompts the user to enter a number and then checks if it is a Kaprekar number (a number whose square can be split into two parts that add up to the original number).
Write a program that prompts the user to enter two strings and then checks if they are anagrams (contain the same letters in the same frequency).
Write a program that prompts the user to enter a number and then checks if it is a Harshad number (a number that is divisible by the sum of its digits).
Write a program that prompts the user to enter a string and then checks if it is a valid ISBN-10 (International Standard Book Number).
Write a program that prompts the user to enter a number between 1 and 7 and then prints the corresponding day of the week.
Write a program that prompts the user to enter a letter grade (A, B, C, D, or F) and then prints the corresponding GPA value.
Write a program that prompts the user to enter a month (1-12) and then prints the number of days in that month.
Write a program that prompts the user to enter a shape (circle, square, or triangle) and then prints the area of that shape.
Write a program that prompts the user to enter a color (red, green, or blue) and then prints the corresponding RGB values.
Write a program that prompts the user to enter a number (1-12) and then prints the corresponding name of the zodiac sign.
Write a program that prompts the user to enter a temperature in Celsius or Fahrenheit and then converts it to the other unit.
Write a program that prompts the user to enter a month (1-12) and then prints the corresponding name of the season (winter, spring, summer, or fall).
Write a program that prompts the user to enter a fruit (apple, banana, or orange) and then prints the corresponding price per pound.
Write a program that prompts the user to enter a number (1-5) and then prints the corresponding emoji (smile, heart, star, lightning bolt, or skull).
Không có nhận xét nào