Computer Science
Write a pseudocode to print all multiples of 5 between 10 and 25 (including both 10 and 25).
Algo & Flowcharts
7 Likes
Answer
Step 1: SET start = 10
Step 2: SET end = 25
Step 3: FOR num = start TO end
Step 4: IF num MOD 5 is 0 THEN
Step 5: PRINT num
Answered By
1 Like
Related Questions
Write a pseudocode that reads two numbers and divide one by another and display the quotient.
Write a pseudocode that will perform the following:
(a) Read the marks of three subjects: Computer Science, Mathematics and Physics out of 100.
(b) Calculate the aggregate marks.
(c) Calculate the percentage of marks.
Write an algorithm to find the greatest among two different numbers entered by the user.
Two friends decide who gets the last slice of a cake by flipping a coin five times. The first person to win three flips wins the cake. An input of 1 means player 1 wins a flip, and a 2 means player 2 wins a flip. Design an algorithm to determine who takes the cake?