wap to accept 100 numbers and display the sum of odd number
Answers
Answered by
0
Answer:
This is done in QBASIC
CLS
FOR I=1 TO 100
INPUT N
IF N MOD 2<>0
THEN S=S+N
ENDIF
NEXT I
END
Explanation:
This code is to find the sum of odd numbers.The program runs a loop from 1 to 100 and checks if the entered number is odd then it calculates the sum of odd numbers.
Similar questions