Write a Python code of a program that adds all numbers that are multiples of both 7 and 9 up to 600 (including 600).
Answers
Answered by
2
Answer:
Start up.
Write "The numbers are: " on the console.
Loop.
Add 1 to a number.
If the number is greater than 600, break.
If the number is not evenly divisible by 7, repeat.
If the number is not evenly divisible by 9, repeat.
Write the number then " " on the console without advancing.
Add the number to a sum.
Repeat.
Skip to a new line on the console.
Write "The sum is: " on the console.
Write the sum on the console.
Wait for the escape key.
Shut down.
And this is what I got when i compiled and ran it (click to enlarge):
Explanation:
please mark me as brainliest
Similar questions