-> 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 any number"; N S = 0 WHILE N<> 0 R = N MOD 10 S = S*10+R N = N\10 WEND PRINT "Reverse of...
-
-> CLS FOR I = 1 TO 5 FOR J = 1 TO I NEXT I ; NEXT J PRINT NEXT I END
-
MY WINTER VACATION!! From poush 15 our winter vacation begins. On 19th poush our schools has ...
No comments:
Post a Comment