-> CLS
INPUT "Enter any number"; N
C = 0
FOR I = 1 TO N
IF N MOD I = 0 THEN C = C+1
NEXT I
IF C = 2 THEN
PRINT "The number is prime"
ELSE
PRINT "The number is composite"
END IF
END
Subscribe to:
Post Comments (Atom)
Project
SWITCH Switch is a computer networking device that is used to connect many devices together on a computer network also it calle...
-
-> CLS INPUT "Enter the length"; L INPUT "Enter the breadth"; B INPUT "Enter the height"; H A = 2*H*(L+B)...
-
-> CLS INPUT "Enter any number"; N FOR I = 1 TO N IF N MOD I = 0 THEN PRINT I NEXT I END
-
-> CLS FOR I = 1 TO 10 PRINT I ^2 NEXT I END
No comments:
Post a Comment