Summary

This document contains a list of programming problems that include tasks such as calculating sums, squares, finding largest numbers, checking divisibility, validating triangles and more.

Full Transcript

Sheet #4 A. Write a pseudo code, algorithm and flowchart to: 1) Read two numbers from the user and print their sum. 2) Read an integer from the user and print its square. 3) Read three numbers and find the largest one. 4) Read an integer from the user and print "Even" for even numbers an...

Sheet #4 A. Write a pseudo code, algorithm and flowchart to: 1) Read two numbers from the user and print their sum. 2) Read an integer from the user and print its square. 3) Read three numbers and find the largest one. 4) Read an integer from the user and print "Even" for even numbers and "Odd" for odd numbers. 5) Take a letter from the user and check whether it is consonant or vowel. 6) Input angles of a triangle and check whether triangle is valid or not. 7) Find number of days in a month given by the user. Hint: Total days in each month are given by the following table: 8) Display the numbers 1 – 100. 9) Print all multiples of 5 between 1 and 100 (including both 1 and 100). 10) Sum the inputted integers until the user enters '0'. 11) Input a positive integer from the user and calculate its factorial. 12) Read a positive integer from the user between 1 and 12 and display its multiplication table. 13) Enter a number and print its reverse. 14) Calculate sum of digits of a number. 15) Find power of a number both taken by the user.

Use Quizgecko on...
Browser
Browser