Salam,

Kisi ko pata hain ye question kaise karna hain?
i m student studying and need help to answer this question

thanks in advance

Write an algorithm in pseudocode that accepts a list of integers input by the user and finds, and displays the largest of all the POSITIVE numbers entered and the sum of those positive numbers. Any negative numbers entered should be accepted as valid input, but otherwise ignored. The user should indicate that s/he has finished entering numbers by entering a zero.

For example the user might enter

3 4 -9 8 -2 0

in which case, the algorithm should report that the largest of the positive numbers entered is 8 and that the sum of the positive numbers entered is 15.

State what tests you would carry out to verify that your pseudocode works as expected. Show your dry test runs (one per test that you have defined).


I have tried to do it lakin mujhe kuch samaj nahi aa raha hain... can anybody help me please?