Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
47 views4 pages

Pseudo and Flowchart Exe

The document contains 34 pseudo code problems involving basic math, logic, and programming concepts. Some examples include calculating sums, averages, areas of shapes, converting between measurement units, finding minimum/maximum values, checking divisibility, and printing patterns. The pseudo code is intended to solve these types of computational and conditional logic problems through programming.

Uploaded by

Luna Walker
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views4 pages

Pseudo and Flowchart Exe

The document contains 34 pseudo code problems involving basic math, logic, and programming concepts. Some examples include calculating sums, averages, areas of shapes, converting between measurement units, finding minimum/maximum values, checking divisibility, and printing patterns. The pseudo code is intended to solve these types of computational and conditional logic problems through programming.

Uploaded by

Luna Walker
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1. Find the sum of two numbers and output the result.

2. Find the average of two numbers and output the result on the screen.
3. Find the area of rectangle.
4. Find the area of circle.
5. Input the weight of the body in pound and change to kg scale. 1 pound= 0.454 kg
6. Input the temperature in Fahrenheit and change to Celsius. (F − 32) × 5/9 = 0°C
7. Find the BMI of the person. Input weight and height.
BMI=weight/height2

8. Check the input number is odd or even.


9. Find maximum number from the two input integer numbers.
10. Find minimum number from the two input integer numbers.
11. Check the input number is positive, negative or zero.
12. Check the age is which era. If the age is greater or equal 10 print Teenager. If the age is
greater or equal 18 print Adult. If the age is greater than or equal 60 print Old, otherwise
print Child.
13. Check the mark and print the grade. If the mark is greater than 50 then grade is D, if the
mark is greater than 60 then grade is C. If the mark is greater than 70 then grade is B, If
the mark is greater than 80 then grade is A. If the mark is greater than 90 then grade is
A* else grade is E.
14. Write a pseudo code to input day number and print day name.
15. Write a pseudo code to input month number and print number of days in that month.
16. Write a pseudo code to input marks of three subjects Physics, Chemistry, Biology.
Calculate percentage and grade according to following:
Percentage >= 90% : Grade A
Percentage >= 80% : Grade B
Percentage >= 70% : Grade C
Percentage >= 60% : Grade D
Percentage >= 5 0% : Grade E
Percentage < 40% : Grade F
17. Write a pseudo code to check whether a number is divisible by 5 and 11 or not.
18. Print First 10 natural numbers using while loop
19. Accept number from user and calculate the sum of all number from 1 to a given number
20. Print multiplication table of a given number
21. Accept number from user and iterate it, and display numbers divisible by five, and if you
find a number greater than 150, stop the loop iteration.
22. Display numbers from -10 to -1 using for loop
23. Write a pseudo code to read in 10 numbers and compute the average, maximum and
minimum values.
24. Two numbers are entered through the keyboard. Write a program to find the value of
one number raised to the power of another.
25. Write a program that prompts the user to input an integer and then outputs the number
with the digits reversed. For example, if the input is 12345, the output should be 54321.
26. Write a program that reads a set of integers, and then prints the sum of the even and
odd integers.
27. Display Fibonacci series up to 10 terms
28. Print the following pattern

29. Write a program to read in numbers until the number -999 is encountered. The sum of all
number read until this point should be printed out.
30. Accept number from user and calculate the sum of all number from 1 to a given number
31. Write a program to calculate the sum of following series where n is input by user.
1 + 1/2 + 1/3 + 1/4 + 1/5 +…………1/n
32. Write a program that generates a random number and asks the user to guess what the
number is. If the user's guess is higher than the random number, the program should
display "Too high, try again." If the user's guess is lower than the random number, the
program should display "Too low, try again." The program should use a loop that repeats
until the user correctly guesses the random number.
33. Write a program in C to make such a pattern like right angle triangle with a number
which will repeat a number in a row.

34. Write a program in C to make such a pattern like right angle triangle with number
increased by 1.
START
DECLEARE firstNumber , secondNumber, total : INTEGER
DECLEARE average : REAL
DECLEARE CONST_PI3.142

OUTPUT “Enter first number: “


INPUT firstNumber
OUTPUT “Enter second number: “
INPUT secondNumber
total  fistNumber+secondNumber
average  total/2
OUPUT “Average is: “,average
OUTPUT “Total is is: “, total

END
Start

Output “Enter Mark”


Input mark

Yes
Output “Grade
Is mark>=50 ? D”

No

Yes
Is mark>=60 ? Output “Grade C”

No
Yes
Is mark>=70 ? Output “Grade
B”

No

Yes Output “Grade


A”
Is mark>=80 ?

No
Yes
Output “Grade
Is mark>=90 ?
A*”

No

End

You might also like