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)
Digital Footprint
Computer technology is a technology that instead of building a physical machine for each application builds a logical or virtual machine. ...

-
Drama is a composition in verse or porse intended to portray life or character or to tell a story. It usually involves conflicts and emotion...
-
CLS FOR I = 1 TO 5 FOR J = 1 TO I PRINT I; NEXT J PRINT NEXT I END
-
CLS FOR I = 1 To 5 FOR J = 1 To I PRINT J ; NEXT J PRINT NEXT I END
No comments:
Post a Comment