Math, asked by Pratyayan, 3 months ago

Write a program in QBASIC to input a number ,find its factors excluding the number
and check the sum of factors is equal to the number or not

Answers

Answered by utsavsinghal
3

Answer:

10 REM ‘Program to find the sum of of even numbers between 10 and 50’

15 REM ‘Using i MOD 2 form’

20 CLS

30 LET s = 10

40 FOR i = s TO 50

50 IF i MOD 2 =0 THEN LET s = s + i

60 NEXT i

70 PRINT "The sum of the numbers is "; s

80 END

Step-by-step explanation:

Mark me as Brainliest

Similar questions