Wednesday, October 2, 2019

21) TO CHECK WHETHER THE GIVEN NO. IS COMPLETELY DIVISIBLE BY 13 OR NOT ( SUB)

DECLARE SUB CHECK(N)
CLS
INPUT"ENTER ANY NUMBER"; N
CALL CHECK(N)
END

SUB CHECK(N)
IF N MOD 13 = 0 THEN
PRINT" THE GIVEN NUMBER IS DIVISIBLE BY 13 "
ELSE
PRINT" THE GIVEN NUMBER IS NOT DIVISIBLE BY 13"
END IF 
END SUB

No comments:

Post a Comment

My Journey with JM

MY JOURNEY WITH JAGAT MANDIR It has been almost 10 years since I have entered this school. It seems like just yesterday but now I...