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)
Peer to Peer Network
Peer to Peer Network Peer-to-Peer is a network model in which each computer can function as both a client and a server. Any computer in th...

-
My Father My father name is Sujan Ram Bhattarai. He is 40 years old. He is a gentle man. A father is a...
-
Pros and cons of online education Nowadays, corona virus has affect the whole which has forced stopped the public sectors like parks , sc...
-
ClS INPUT "Enter base"; B INPUT "Enter height"; H A = 1/2*B*H PRINT "Area of triangle="; A END
No comments:
Post a Comment