Search This Blog

Showing posts with label Computer Practical - IX (Arts). Show all posts
Showing posts with label Computer Practical - IX (Arts). Show all posts

Saturday, 15 March 2025

Practical No.1(a): W.A.P. to PRINT your name by using For......NEXT - Computer Studies For Class IX (Arts /General /Humanities Group)

Go To Index
Computer Studies
Practical
Class IX (Arts /General /Humanities Group)

Practical No. 1(a): Write a program to PRINT your name ten times by using For......NEXT statement.
PROGRAM:

10 CLS
20 Input "Enter your Name",N$
30 For A=1 to 10 Step 1
40 Print "Name",N$
50 Next A
RUN


Practical No.2: W.A.P. to calculate the SQUARE and CUBE of first ten natural numbers - Computer Studies For Class IX (Arts /General /Humanities Group)

Go To Index
Computer Studies
Practical
Class IX (Arts /General /Humanities Group)

Practical No. 2: Write a program to calculate the SQUARE and CUBE of 1st ten Natural Numbers.
PROGRAM:

10 CLS
20 PRINT “NUMBERS”, “SQUARE”, “CUBE”
30 PRINT “~~~~~~~~~”, “~~~~~~~~”, “~~~~”
40 FOR N = 1 TO 10
50 PRINT N, N^2, N^3
60 NEXT N
70 PRINT STRING$(35, “~”)
80 END
RUN


OR

10 REM CALCULATE SQUARE AND CUBE OF FIRST TEN NATURAL NUMBERS
20 CLS
30 PRINT TAB(5) "NUMBERS", "SQUARES", "CUBE"
40 FOR N = 1 TO 10
50 LET S = N^2
60 LET C = N^3
70 PRINT TAB(5) N, S, C
80 NEXT N
90 END

OUTPUT
NUMBERSQUARESCUBE
111
248
3927
41664
525125
636216
749343
864512
981729
101001000


Practical No.1(b): W.A.P. to PRINT your name by using IF......THEN - Computer Studies For Class IX (Arts /General /Humanities Group)

Go To Index
Computer Studies
Practical
Class IX (Arts /General /Humanities Group)

Practical No. 1(b): Write a program to PRINT your name ten times by using IF......THEN statement.
PROGRAM:

10 CLS
20 Input "Enter your Name",N$
30 Let A = 0
40 Let A = A + 1
50 Print "Name",N$
60 If A=10 then END
70 Goto 40
RUN

OR

10 REM PRINT YOUR NAME TEN TIME BY USING IF..... THEN STATEMENT
20 CLS
30 INPUT "ENTER YOUR NAME:";N$
40 PRINT TAB(10) N$
50 LET A = A + 1
60 IF A = 10 THEN GOTO 70 ELSE GOTO 40
70 END
RUN

OUTPUT

GW-BASIC
GW-BASIC
GW-BASIC
GW-BASIC
GW-BASIC
GW-BASIC
GW-BASIC
GW-BASIC
GW-BASIC
GW-BASIC