Lavanya+Rangrajan

SUM OF TEN EVEN NUMBERS

10 REM TOP PRINT SUM OF TEN EVEN NUMBERS 20 CLS 30 NO1 = 0 40 SUM = 0 50 SUM = SUM + NO1 60 NO1 = NO1 + 2 70 IF NO1 <= 20 THEN GOTO 50 80 PRINT "TOTAL OF FIRST TEN EVEN NUMBERS IS :"; SUM 90 END

PROGRAM TO SHOW GREATER NUMBER

10 CLS 20 INPUT "ENTER GREATER NUMBER:"; N1 30 INPUT "ENTER SECOND NUMBER:"; N2 40 IF N1 > N2 THEN PRINT "GREATER NUMBER IS:"; N1 ELSE IF N1 < N2 THEN PRINT "GREATER NUMBER IS:"; N2 50 END

PROGRAM TO CALCULATE STUDENT'S GRADE

10 CLS 20 INPUT "ENTER PERCENTAGE:"; P 30 IF (P <= 40) THEN PRINT "FAIL" 40 IF (P > 40) AND (P < 60) THEN PRINT "A" 50 IF (P > 80) THEN PRINT "A+" 60 END

PROGRAM TO KNOW THAT THE NUMBER IS NEGATIVE OR POSITIVE

10 CLS 20 INPUT "ENTER A NUMBER (POSITIVE OR NEGETIVE):"; N 30 IF N < 0 THEN PRINT "THE NUMBER IS NEGETIVE" ELSE PRINT "THE NUMBER IS POSITIVE" 40 END

PROGRAM TO CALCULATE THE AVERAGE

10 CLS 20 REM CALCULATE THE AVERAGE 30 PRINT "ENTER THE 6 VALUES" 40 INPUT A1 50 INPUT A2 60 INPUT A3 70 INPUT A4 80 INPUT A5 90 INPUT A6 100 TOT = A1 + A2 + A3 + A4 + A5 + A6 110 AVG = TOT / 4 120 PRINT "AVERAGE AGE="; AVG 130 END  PROGRAM TO WRITE YOUR NAME, FATHER'S NAME AND ADDRESS

10 CLS 20 REM TO PRINT YOUR NAME, FATHERS NAME AND ADDRESS 30 INPUT "NAME:"; NAM$ 40 INPUT "FATHER'S NAME:"; FATH$ 50 INPUT "ADDRESS:"; ADD$ 60 END

PROGRAM TO SAY GOOD DAY

10 REM, PROGRAM TO PRINT MESSAGE "WISH YOU A GOOD DAY 20 CLS 30 PRINT " WISH YOU A GOOD DAY" 30 END

PROGRAM TO PRINT THE DETAILS OF A STUDENT

10 REM PROGRAM TO PRINT DETAILS OF A PERSON 20 CLS 30 INPUT "YOUR NAME"; NAM$ 40 INPUT "FATHER'S NAME"; FATH$ 50 INPUT "YOUR AGE"; AGE$ 60 INPUT "FATHER'S OCCUPATION"; OCC$ 70 INPUT "ADDRESS"; ADD$ 80 INPUT "TELEPHONE NUMBER"; PHONE$ 90 END

PROGRAM TO PRINT THOUGHT FOR THE DAY

10 REM TO PRINT THOUGHT FOR THE DAY 20 CLS 30 PRINT "THOUGHT FOR THE DAY:SUCCESS IS A MARATHON, IT IS NOT A SPRINT" 40 END