This document contains 20 programming problems involving basic logic and math operations. The problems include checking voter eligibility based on age, determining if a number is even or odd, displaying "Hello" or "Bye" based on multiples of 5, finding the last digit of a number, checking if the last digit is divisible by 3, displaying the day of the week for a number 1-7, performing math operations on user-input numbers, checking for a leap year, determining if a number is positive or negative, and assigning a letter grade based on percentage ranges.
This document contains 20 programming problems involving basic logic and math operations. The problems include checking voter eligibility based on age, determining if a number is even or odd, displaying "Hello" or "Bye" based on multiples of 5, finding the last digit of a number, checking if the last digit is divisible by 3, displaying the day of the week for a number 1-7, performing math operations on user-input numbers, checking for a leap year, determining if a number is positive or negative, and assigning a letter grade based on percentage ranges.
This document contains 20 programming problems involving basic logic and math operations. The problems include checking voter eligibility based on age, determining if a number is even or odd, displaying "Hello" or "Bye" based on multiples of 5, finding the last digit of a number, checking if the last digit is divisible by 3, displaying the day of the week for a number 1-7, performing math operations on user-input numbers, checking for a leap year, determining if a number is positive or negative, and assigning a letter grade based on percentage ranges.
This document contains 20 programming problems involving basic logic and math operations. The problems include checking voter eligibility based on age, determining if a number is even or odd, displaying "Hello" or "Bye" based on multiples of 5, finding the last digit of a number, checking if the last digit is divisible by 3, displaying the day of the week for a number 1-7, performing math operations on user-input numbers, checking for a leap year, determining if a number is positive or negative, and assigning a letter grade based on percentage ranges.
11. Write a program to check whether a person is eligible for voting or
not. (accept age from user) 12. Write a program to check whether a number entered by user is even or odd. 13. Write a program to display "Hello" if a number entered by user is a multiple of five, otherwise print "Bye". 14. Write a program to display the last digit of a number. 15. Write a program to check whether the last digit of a number (entered by user) is divisible by 3 or not. 16. Write a program to accept a number from 1 to 7 and display the name of the day like 1 for Sunday, 2 for Monday and so on. 17. Write a program to accept two numbers and mathematical operators and perform operation accordingly. 18. Write a program to check whether a year is leap year or not. 19. Write a program to check whether a number (accepted from user) is positive or negative. 20. Write a program to accept percentage from the user and display the grade according to the following criteria: Marks Grade > 90 A > 80 and <= 90 B >= 60 and <= 80 C below 60 D