COMPUTER ASSIGNMENT
Q) Write a Program to find the sum of all the numbers from 1 to n. Also check that input number ‘n’ must be greater than 0.
Accepted Output Based On Input Are:
a. If User Enter Value = 5
Then output is like :
1 + 2 + 3+ 4+5=15
b. If User Enter Value = 0
Then output is like:
INVALID INPUT. NUMBER MUST BE GREATER THAN 0.
Answers
Answered by
4
Answer:
Answered by
0
Answer:
hiya mondal why you mean
Explanation:
I didn't understand
Similar questions
English,
4 months ago
Social Sciences,
4 months ago
Science,
9 months ago
Geography,
1 year ago
Hindi,
1 year ago