-> 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...

-
" My father" ' My father tears and fears are unseen, his love is unexpressed, but his care and protection remain...
-
MY WINTER VACATION!! From poush 15 our winter vacation begins. On 19th poush our schools has ...
-
-> CLS INPUT "Enter any number"; N F = 1 FOR I = 1 TO N F = F*I NEXT I PRINT "Factorial="; F END
No comments:
Post a Comment