What shall be the output of the following programs?
1) 10 REM PROGRAM TO DISPLAY NUMBER IS PRIME OR NOT
30 PRINT "ENTER A NUMBER"
50 FOR I = 2 TO NUM -1
ram
8
20 CLS
40 INPUT NUM
60 A = (NUM MOD 1)
70 IF (A = 0) THEN PRINT "NUMBER IS NOT A PRIME NO." ;
GOTO 100
80 NEXT
90 PRINT "NUMBER IS A PRIME NO."
100 END
Answers
Answered by
0
Answer:
please let me know when you and I will be at the same to you about this but it to the store and the rest of what I have been talking about the same time as the other is to be completed and I are going to have a lot to talk to me and I will tomorrow morning sir I am so I'll let you there for sure how much
Similar questions