Ajesh+Lingwal

10 REM CALCULATE THE AVERAGE 20 PRINT “ENTER THE FOUR VALUES” 30 PRINT 40 INPUT A1, A2, A3, A4 50 TOT =A1+ A2+ A3+ A4 60 AVG =TOT/4 70 PRINT “AVERAGE AGE = ”; AVEG 80 END 10 CLS 20 A = 5 30 COUNT = 5 40 PRINT A 50 B = A + A 60 PRINT B 70 A = A + 4 80 COUNT = COUNT + 5 90 IF COUNT <= 20 THEN GOTO 40

10 REM "TO PRINT THE SUM OF 500 NUMBERS" 20 CLS 30 NO1 = 1 40 SUM = 0 50 SUM = SUM + NO1 60 NO1 = NO1 + 2 70 IF NO1 <= 21 THEN GOTO 50 80 PRINT "TOTAL OF FIRST 500 ODD NUMBERS IS:"; SUM 90 END

10 CLS 20 DIM A, B AS INTEGER 30 INPUT A 40 INPUT B 50 C = A + B 60 PRINT "SUM="; C 70 PRINT 80 PRINT 90 C = A * B 100 PRINT PRODUCT 110 END

10 cls 20 print "wish you a good day" 30 end

10 cls 20 print "name" 30 print "age" 40 print "father's name" 50 print "occupation" 60 print "adress" 70 print "telephone number" 80 end

10 cls 20 print "thought for the day," 30 print "Success is a MARATHON,its not a spirit" 40 end

10 CLS 20 INPUT "ENTER FIRST NUMBER:"; NUM.1 30 INPUT "ENTER SECOND NUMBER:"; NUM.2 40 IF NUM.1 < NUM.2 THEN PRINT "SMALLER NUMBER:"; NUM.1 50 IF NUM.1 > NUM.2 THEN PRINT "SMALLER NUMBER:"; NUM.2 60 END

10 CLS 20 N = 1 30 IF N < 100 THEN GOTO 40 ELSE GOTO 70 40 PRINT N 50 N = N + 10 60 GOTO 20 70 END

10 CLS 20 INPUT "ENTER FIRST NUMBER:"; NO.1 30 INPUT "ENTER SECOND NUMBER:"; NO.2 40 NO.3 = NO.1 50 NO.1 = NO.2 60 NO.2 = NO.3 70 PRINT "THE VALUE OF THE FIRST NUMBER IS:"; NO.1 80 PRINT "THE VALUE OF THE SECOND NUMBER IS:"; NO.2

10 LET A$ = "GOOD" 20 LET B$ = "MORNING" 30 PRINT A$, B$ 40 PRINT 50 PRINT A$; B$ 60 END

10 CLS 20 PRINT TAB(5); "ITEM", TAB(25); "PRICE" 30 PRINT TAB(5); "LAPTOP", TAB(25); "RS. 40,999" 40 PRINT TAB(5); "CHEVROLET CRUZE", TAB(25); "RS. 10,50,599" 50 PRINT TAB(5); "TEDDY BEAR", TAB(25); "RS. 350" 60 PRINT TAB(5); "DOUBLE BED", TAB(25); "RS. 45,000" 70 PRINT TAB(5); "CORBY PRO", TAB(25); 'RS. 20,000'

10 REM CALCULATE THE AREA AND PERIMETER 20 INPUT L, B 30 AREA = L * B 40 PRINT TAB (5); “AREA:”; AREA 50 PERI = 2 *(L+B) 60 PRINT TAB (5); “PERIMETER:”; PERI 70 END

10 INPUT “NAME”; N$ 20 INPUT “CLASS”; C 30 INPUT “TAKEN SCIENCE STREAM (YES/NO)”;A$ 40 IF C = 10 AND A$ = “YES” THEN 50 ELSE 70 50 PRINT N$, “WELCOME TO SCIENCE DEPARTMENT” 60 GOTO 80 70 PRINT N$, “Sorry, you do not belong to this class” 80 END

10 CLS 20 INPUT "ENTER THE AGE OF FIRST EMPLOYEE:"; FE 30 INPUT "ENTER THE AGE OF SECOND EMPLOYEE:"; SE 40 INPUT "ENTER THE AGE OF THIRD EMPLOYEE:"; TE 50 INPUT "ENTER THE AGE OF FOURTH EMPLOYEE:"; FOE 60 INPUT "ENTER THE AGE OF FIFTH EMPLOYEE:"; FIE 70 SUM = (FE + SE + TE + FOE + FIE) / 5 80 PRINT "AVERAGE AGE OF ALL EMPLOYEES:"; SUM; "YEARS" 90 END

10 INPUT "ENTER FIRST NUMBER:"; NUM.1 20 INPUT "ENTER SECOND NUMBER:"; NUM.2 30 IF NUM.1 > NUM.2 THEN PRINT "GREATER NUMBER:"; NUM.1 40 IF NUM.1 < NUM.2 THEN PRINT "GREATER NUMBER:"; NUM.2 50 END

10 CLS 20 INPUT "PRINCIPAL:"; PI 30 INPUT "INTEREST RATE:"; IR 40 INPUT "TIME:"; TM 50 SUM = (PI * IR * TM) / 100 60 PRINT "INTEREST:"; SUM 70 END //__ FROM __// //__ AJESH LINGWAL __//