You are on page 1of 1

Ejercicios:

1. Write a program that prints the numbers from 1 to 100, but for multiples of three,
print "Fizz" instead of the number, and for multiples of five, print "Buzz". For
numbers that are multiples of both three and five, print "FizzBuzz"

2. Write a program that prompts the user to enter a positive integer, and then
calculates the sum of all integers from 1 to the entered number.

3. Generates a random number between 1 and 100, and prompts the user to guess
the number. If the guess is too high, the program should print "Too high", if the
guess is too low, the program should print "Too low", and if the guess is correct, the
program should print "Congratulations!" and exit the loop:

4. Write a program that prompts the user to enter a positive integer, and then checks
whether the number is a palindrome or not.

5. Write a program that generates a multiplication table for all numbers between 1
and 10.

You might also like