Puesocode
Puesocode
Average population.
12. Ask how many grade scores the user wants to enter, take input, and print the average.
13. Input a number and print its multiplication table.
14. Input 40 numbers, count those that are not 5 or 6.
15. Print all multiples of 5 from 1 to 100.
16. Count all even numbers from 2 to 200.
17. Print all perfect squares between 2 and 100.
18. Let the user enter a number, multiply by 10, repeat until the product is 100 or more.
19. Keep asking “Are we there yet?” until the user enters ‘y’.
20. Keep asking “What coding language is this?” and display a message when “python” is
entered.
≤0: solid
1–99: liquid
≥100: gas
9. If age ≥ 18, issue driving license.
10. Input age, check if eligible to vote (age ≥ 18).
11. Use switch-case to print remarks for grades (A, B, C, D, F).
12. Use nested if-else to find the largest of 3 numbers.
13. Input 3 angles. If their sum = 180, the triangle is valid; otherwise, not.
3. Output numbers from 30 to 50 and print the sum of numbers that are multiples of 4.
4. Keep asking for numbers until the user enters a number less than 0.
5. Keep inputting numbers and stop when the user enters two even numbers in a row.
6. Input numbers and print their average. Stop when the user enters -999.
7. Print a table showing days and hours worked (1 to 7 days, 1–10 hours/day).
8. Input 10 temperatures and print the highest and lowest temperature recorded.
9. Keep asking for product prices. Stop when total exceeds 500. Then print how many items
were entered.
10. Input 25 numbers, count how many are prime numbers.
Average height,
Average weight,
Tallest height
12. Input marks for multiple students. Stop at -1. Count how many passed (marks ≥ 50).
14. Input 30 numbers, print how many are between 20 and 50 (inclusive).
15. Print all even numbers from 10 to 70 that are also divisible by 3.
18. Ask user to input a number. Multiply by 2 and keep going until the result becomes more
than 200.
19. Keep asking “Do you like coding?” until the user types “yes”.
20. Ask “Guess the secret number” until the user enters 42. Then print “You guessed it!”
8. Input temperature. Suggest “fan”, “heater”, or “open window” based on the value.
9. Input age and check which school level applies (e.g., primary, middle, high).
10. Input username and password. Grant access if both are correct.
12. Use nested if-else to determine the type of triangle (equilateral, isosceles, scalene).
1000 = 20%
500–1000 = 10%
<500 = 0%
5. Input price and quantity for 3 items, find total bill and average item cost.