Computer Science, asked by anathapa9491, 8 months ago

Write a pseudo-code to find the sum of numbers divisible by 4. The pseudo-code must allow the user to accept a number and add it to the sum if it is divisible by 4. It should continue accepting numbers as long as the user wants to provide an input and should display the final sum.

Answers

Answered by shrawan85356
3

Answer:

Write a pseudo-code to find the sum of numbers divisible by 4. The pseudo-code must allow the user to accept a number and add it to the sum if it is divisible by 4. It should continue accepting numbers as long as the user wants to provide an input and should display the final sum in python.

3 वोट

Answered by tkdsawwalakhe01
1

Answer:

Answer:

Step1: Start

Step2: Input the n digit numbers

Step 3: Return the sum of these n digital number which are divisible by number

Step5: Calculate the first term and the last term as

int firstnum = pow(10, n - 1);

int lastnum = pow(10, n);

Step6: Calculate the sum of n digit number and the divisible by number.

Step7: write the main function

Step8: Stop

Explanation:

Similar questions