**Practical: 1- Write a Program to Print even numbers from 1 to 40.**

**Program:**

10 CLS

20 FOR B = 2 TO 40 STEP 2

30 PRINT B

40 NEXT B

50 END**Algorithm**

Step 1 START

Step 2 STORAGE B=2

Step 3 DECISION IS B<= 40 IF

NOT THEN GO TO STEP 7

Step 4 COMPUTE B=B+2

Step 5 PRINT

STEP 6 GOTO STEP 3

Step 7 END

**Algorithm**

Step 1 START

Step 2 INPUT L , W

Step 3 COMPUTE AREA = L * W

Step 4 PRINT AREA

Step 5 END

**Practical: 11: Write a program that can calculate the perimeter of the rectangular**.

**Program:**

10 CLS

20 INPUT “Length …=”;L

30 INPUT “Width …=”; W

40 PERIMETER= 2* ( L+W)

50 PRINT “ PERIMETER….. =”; PERIMETER

60 END

**Algorithm**

Step 1 START

Step 2 INPUT L , W

Step 3 COMPUTE PERIMETER = 2* ( L+W)

Step 4 PRINT PERIMETER

Step 5 END**Practical: 12: Write a program that can calculate the square and cube of any number.**

**Program:**

10 CLS

20 INPUT “ Enter any No..…=”; N

30 Sq = N*N

40 Cub= N^3

50 PRINT “ Square….. =”; Sq

60 PRINT “ Cube….. =”; Cub

70 END

**Algorithm**

Step 1 START

Step 2 INPUT N

Step 3 COMPUTE Sq = N*N

Step 4 COMPUTE Cub = N^3

Step5 PRINT Sq ,Cub

Ste

**Practical: 13: Write a program that can convert temperature from Centigrade to Fahrenheit**

**Program:**

10 CLS

20 INPUT “ Temperature in Centigrade :=”; C

30 F = 9/5* C+32

40 PRINT “Temperature in Fahrenheit =”; F

50 END

**Algorithm**

Step 1 START

Step 2 INPUT C

Step 3 COMPUTE F = 9/5* C+32

Step 4 PRINT F

Step 5 END

**Practical: 14:**

**Write a program that can convert temperature from Fahrenheit to Centigrade**

**Program:**

10 CLS

20 INPUT “ Temperature in Fahrenheit :=”; F

30 C = 5/9* ( F-32)

40 PRINT “Temperature in Centigrade =”; C

50 END

**Algorithm**

Step 1 START

Step 2 INPUT F

Step 3 COMPUTE C = 5/9* ( F-32)

Step 4 PRINT C

Step 5 END

**Practical: 15: Write a program that can draw a Triangle.**

**Program:**

10 CLS

20 SCREEN 2

30 LINE (110,50)- (160,100)

40 LINE (60,100)- (160,100)

50 LINE (110,50)- (60,100)

60 END

**Algorithm**

Step 1 START

Step 2 PRINT SCREEN 2

Step 3 OUTPUT LINE (110, 50) - (160,100)

Step 4 END

**Practical: 16: Write a program that can draw a Rectangle.**

**Program:**

10 CLS

20 SCREEN 2

30 LINE (70,80)- (190,170),,B

40 END**Algorithm**

Step 1 START

Step 2 PRINT SCREEN 2

Step 3 OUTPUT LINE (70, 80) - (190,170),, B

Step 4 END**Practical: 17: Write a program that can add 15+ 30+20+325.**

**Program:**

10 CLS

20 READ A,B,C,D

30 SUM= A+B+C+D

40 PRINT “SUM OF 15,30,20 AND 325 IS…=”; SUM

50 DATA 15,30,20,325

60 END

**Algorithm**

Step 1 START

Step 2 STORAGE A=1

Step 3 DECISION IS A <=4, IF NOT THEN GOTO STEP 8

Step 4 COMPUTE A=A+1

Step 5 COMPUTE SUM = SUM +5^A

Step 6 PRINT 5^A, SUM

Step 7 GOTO STEP 3

Step 8 END**Practical: 18: Write a program that can print all odd numbers from 1 to 100**.

**Program:**

10 CLS

20 FOR N = 1 TO 100 STEP 2

30 PRINT N

40 NEXT N

50 END

**Algorithm**

Step 1 START

Step 2 STORAGE N=1

Step 3 DECISION IS N <=100, IF NOT THEN GOTO STEP 7

Step 4 COMPUTE N=N+2

Step 5 PRINT N

Step 6 GOTO STEP 3

Step 7 END

**Practical: 19: Write a program that can print all even numbers from 2 to 100**.

**Program:**

10 CLS

20 FOR B = 2 TO 100 STEP 2

30 PRINT B

40 NEXT B

50 END**Algorithm**

Step 1 START

Step 2 STORAGE B=2

Step 3 DECISION IS B <=100, IF NOT THEN GOTO STEP 7

Step 4 COMPUTE B=B+2

Step 5 PRINT B

Step 6 GOTO STEP 3

Step 7 END**Practical:20: program that can Print you name five times using FOR-NEXT**

**Loop**

**Program:**

10 CLS

20 FOR N =1 TO 5

30 PRINT “GOD IS GREAT”

40 NEXT N

50 END

**Algorithm**

Step 1 START

Step 2 STORAGE N=1

Step 3 DECISION IS N<=5, IF NOT THEN GOTO STEP 7

Step 4 PRINT GOD IS GREAT

Step 5 COMPUTE N=N+1

Step 6 GOTO STEP 3

Step 7 END

**Practical:2 :Write a Program to add two numbers.**

**Algorithm**

Step 1 START

Step 2 INPUT N1 ,N2 B=2

Step 3 COMPUTE SUM N1+N2

Step 4 PRINT SUM

Step 5 END

**Practical: 3: Write such program which can read six numbers and print their average**.

**Algorithm**

Step 1 START

Step 2 INPUT N1, N2, N3, N4, N5, N6

Step 3 COMPUTE AVG=( N1+N2+N3+N4+N5+N6) /6

Step 4 PRINT AVG

Step 5 END

**Practical: 4: Write a program which can find the largest number of given three numbers.**

**Algorithm**

Step 1 START

Step 2 INPUT N1, N2, N3

Step 3 DECISION IS N1> N2 AND N1 > N3 IF YES THEN PRINT N1

Step 4 DECISION IS N2> N1 AND N2 > N3 IF YES THEN PRINT N2

Step 5 ELSE PRINT N3

Step 6 END

**Practical: 5: Write a program that can calculate the sum and average of four numbers.**

**Algorithm**

Step 1 START

Step 2 INPUT N1, N2, N3, N4

Step 3 COMPUTE SUM= N1, N2, N3, N4

Step 4 COMPUTE AVG= SUM/4

Step 5 PRINT SUM,AVG

Step 6 END

**Practical: 6: Write a program that can draw a circle in a square.**

**Program:**

10 CLS

20 SCREEN 2

30 CIRCLE ( 100,100), 50

40 LINE ( 168,35)- (472,165),,B

50 END

**Algorithm**

Step 1 START

Step 2 PRINT SCREEN 2

Step

3 PRINT CIRCLE (100,100),50

3 PRINT CIRCLE (100,100),50

Step 4 PRINT LINE (168,35)- (472,165),,B

Step 5 END

**Practical: 7:**

**Write a program that can calculate the area**

**of a circle**.

**Algorithm**

Step 1 START

Step 2 INPUT N=R

Step 3 COMPUTE AREA =3.14*R*R

Step 4 PRINT AREA

Step 5 END

**Practical: 8: Write a program that can draw a circle.**

**Program:**

10 CLS

20 SCREEN 2

30 CIRCLE ( 100,100), 50

40 END

**Algorithm**

Step 1 START

Step 2 PRINT SCREEN 2

Step

3 PRINT CIRCLE (1000,100),50

3 PRINT CIRCLE (1000,100),50

Step 4 END

**Practical: 9: Write a program that can find the value of a solid cylinder**

**Algorithm**

Step 1 START

Step 2 INPUT R , H

Step 3 COMPUTE VOL= 3.14*R^2*H

Step 4 PRINT VOL

Step 5 END

**Practical:10: Write a program that can calculate the area of a rectangle**

i need a program to write 1st 10 odd number using whil wend loop

ReplyDeleteplz tell me on my contact number via SMS

03425111231

naughty naughty

Delete10 n=1

ReplyDelete20 while n<=20

30 print n

40 n=n+2

50 wend

60 end

a program to print a list of odd numbers from the given numbers using arrays

ReplyDelete6,42,4,77,32,9,21,22,8,45,15,46

(thanks)Musa raza shah

Dear student check ch#4Q#14 in my BLOG ARCHIVE.

Delete10 cls

Delete20 for i=1 to 12

30 read A(i)

40 next i

50 for i=1 to 12

60 print a(i)

70 next i

80 data 6,42,4,77,32,9,21,22,8,45,15,46

90 end

there is a problem in circle program algorithm its not 1000 its 100

ReplyDeleteyes right...it was typing mistake....but thanks

Deletei need a program to produce the sum of first 10 natural numbers.. plz upload it as sooon as possible!

ReplyDelete10 REM * PROGRAM TO PRODUCE SUM OF NUMBERS * 20 CLS

Delete30 PRINT “NUMBERS”

40 PRINT “~~~~~~~~~”

50 FOR N = 1 TO 10

60 SUM = SUM + N

70 PRINT N

80 NEXT N

90 PRINT TAB(30); “---------“

100 PRINT “SUM OF FIRST TEN NATURAL NUMBERS IS “;SUM 110 PRINT TAB(30); “---------“

This comment has been removed by the author.

ReplyDelete0 for i=1 to 10

ReplyDelete20 n=n+i

30 next i

40 print n

50 end

Salam,

ReplyDeletewhat is an array? How it can be created and what r their uses ?

Plz contact 03347562076

abdurrehman.shahbaz@yahoo.com

an array is collection of variables that can store data of same type

Delete"An array is collection of variables with the same variable name and data type"

ReplyDeleteAN array is represented in computer memory by a set of consecutive memory locations. The memory locations are referred to as element of an array. Each element of an array has a unique storage location in memory and can hold single value.Each location is identified by its position value is called subscript or index.

Uses:

Array is used to store same kind of data in one variable. This stores computer's memory. For example you want to store 100 names of students in through basic. For this you have to allocate 100 variables.It means 100 memory locations are allocated. In this way we consume a lot of system memory if we use an array it will be save our memory and all variables of same data type will combine in one place. We fill array by using loops.

its great

Deleteit is great and helped alot

ReplyDeletethank you Liza...:)

DeleteWhat is foreground and background ? Plz upload it as soon as possible...

ReplyDeletesano ki pta yr

Deleteok g

Foreground is area in which you are writing something or graphing....all characters are said to b foreground where as behind the characters the empty area is called background.

ReplyDeleteyour program is good.

ReplyDeleteI'm asking you to that why is used for colon(:) between for and next loop

Dear student your question is not clear that what are you asking. Colon is always used to write multiple statement in one line.

DeleteI WANT PROGRAM FOR DRAWING A FIVE SIDED STAR IN GW-BASIC !

ReplyDelete10 screen 2

Delete20 pset(100,50)

30 draw"R100 G50 H50 BD40 R100 H50 G50"

40 End

This star will not draw by the DRAW STATEMENT

Deleteit will draw by using LINE STATEMENT by specifying coordinates according to the selected screen (TRUST ME)!!

I will suggest SCREEN 7 with resolution 320*200 and has 16 colors

THANKS

BY USING DRAW STATEMENT a six side star will draw like two opposites triangles

i want program 2 find average of 5 numbers

ReplyDelete10 CLS

Delete15 N=0

20 FOR L = 1 TO 5 STEP 1

30 INPUT "ENTER ANY NUM";NUM

40 N=N+NUM

50 NEXT L

60 AVG= N/5

70 PRINT "AVG=,,,,,,,";AVG

80 END

Check practical#3 from above.Just you have to take input n5 and in sum add n5 and in average devide it by 5.

ReplyDeletei need a program to print a circle inside a square.

ReplyDeletei dont know from where i should strt my preparation give me sm suggestion plz

ReplyDeletepresentation ni preparation...

Deleteplz rply

ReplyDeletePls how do u write a program in basic to determine wether a number is an even or odd number

ReplyDelete10 CLS

Delete20 FOR A=1 TO 20

30 B=A MOD 2

40 IF B=0 THEN PRINT A; "IS AN EVEN NUMBER" ELSE PRINT A;"IS AN ODD NUMBER"

50 NEXT

60 END

Pls reply am in need of the answer

ReplyDeletesee ch#3Q#10

ReplyDeletehow can gwbasic be downloaded in 2007 windows reply fast please ??????????

Deletewhy isn't my program for drawing a circle working? as i run it the basic closes automatically

ReplyDeletegraphic mode in basic is not supported by windows 7.

DeleteThis comment has been removed by the author.

ReplyDeleteWHAT IS THE PURPOSE OF THE PSET STATEMENT??

ReplyDeletepset is used to mark dot or point in basic...use with draw statement it initialize the starting point

DeleteI have few questions

ReplyDeletei wrote a program and saved it say "q1".now i want to make changes in this how can i open the this file

i wrote a program but now i want to insert a new line of code in between the two lines how can i do that

here in this blog u mentioned two modes i) direct mode ii) indirect mode

how can use indirect mode.

i couldnt figure out the mistake i am making

10 screen 2

20 for i=30 to 180 step 30

30 circle(i,100),50

40 next i

50 end

it gave me following message

"next without For in 0"

waiting for the reply

there is not any error in this program.run again

Deletei want some if then else,

ReplyDeletefor next

single dimension arrays

programs fr practice as my exams are comin i m a student

need solved excercise of ch#7

ReplyDeleteWRITE THE NAME OF CHAPTER

Deleteoky ky gwbasic 3.2 window 2006 nm save ni ho sakti kya

Deleteplz reply

ReplyDeleteThis comment has been removed by the author.

ReplyDeleteplz explian the execution for program of circle, triangle and rectangle..i dont know how to take values ..and which values wil b correct and why ...plz reply soon ..thanx

ReplyDeletefor this you have to learn number of pixels in modes of basic.for example in screen mode 2 the number of pixels in rows are 200 and in columns 640.if you want draw a point in center of your screen you will take points pset(320,100). for circle

Delete10 circle(320,100),50

program to draw triangle:

for triangle we will use draw statement

10 screen 2

20 pset(320,100)

30 draw"r60 g30 h30"

similarly you can draw any thing and any where on your screen.

.

.

make this practice by yourself in basic and tell me in case of any problem. Best of luck

i want a program which prints sum and average using if then else statement

ReplyDeleteI want to write a programme that print sum of square of first 5 even numbers

ReplyDelete10 for i=2 to 10

Delete20 n=i*i+n

50 next i

60 print"sum of square of first 5 even numbers=";n

I want to write a programme in GWBASIC to find the sum of the series 4/5+5/6+6/7+.....+69/70.

ReplyDelete10 for i=4 to 69

ReplyDelete20 n=i/(i+1)

30 print n

40 a=a+n

50 next i

60 print"sum of series 4/5+5/6+6/7+.....+69/70=";a

i want a program to create olmpic sign please tell me ho to do............

ReplyDelete10 screen 2

Delete20 circle(40,100),20

30 circle(60,100),20

40 circle(80,100),20

50 circle(45,110),20

60 circle(65,110),20

70 end

HI

ReplyDelete10 FOR I=1 TO 5

ReplyDelete20 INPUT A(I)

30 NEXT I

40 END

CONVERT FOR NEXT LOOP INTO WHILE WEND LOOP...............PLZZZZZ ITZ URGENT!!!!!!!!!!!!

10 i=1

Delete20 while i<=5

30 input a(i)

40 i=i+1

50 wend

60 end

write a program that draw a star >?????????????

ReplyDeleteplzz reply me as early as possible

PLEASE SHOW AN EASY METHOD TO WRITE PROGRAMS IN GW BASIC

ReplyDeletewrite a program that draw a star > with draw statement

ReplyDeletedear students program to draw a star is in my solution programs already.CH#6Q#11

ReplyDeleteHow we make 5 circles of same centre? plz reply

ReplyDeletesee solution in my blogs's chapter#6

ReplyDeletecan you help me i have to make program that make inverted triange with 100 to 1

ReplyDeletelike this (100 to 1)

100 99 98 97 96

95 94 93 92

90 98 88

87 86

85

there is not any logic of this type of question.but i'll try to make it or rather similar to this program

DeleteHow to assign grades according to percentage in basic? I've made the whole program but the grade assigning is freaking me out :(

ReplyDeletepost your program here then i check

DeleteThis comment has been removed by the author.

Delete10 CLS

Delete20 INPUT "enter number of first subject",N1

30 INPUT "enter number of second subject",N2

40 INPUT "enter number of third subject",N3

50 INPUT "enter number of fourth subject",N4

60 INPUT "enter number of fifth subject",N5

70 INPUT "enter total numbers of all subjects",x

80 SUM = N1 + N2 + N3 + N4 + N5

90 z = SUM/x

100 c = z*100

110 IF c>=80 GOTO 170

120 IF c>=70 GOTO 190

130 IF c>=60 GOTO 210

140 IF c>=50 GOTO 230

150 IF c>=40 GOTO 250

160 IF c<40 GOTO 270

170 PRINT "grade A+1"

180 END

190 PRINT "grade A"

200 END

210 PRINT "grade B"

220 END

230 PRINT "grade C"

240 END

250 PRINT"grade D"

260 END

270 PRINT "grade f"

280 END

10 CLS

ReplyDelete20 INPUT "enter number of first subject",N1

30 INPUT "enter number of second subject",N2

40 INPUT "enter number of third subject",N3

50 INPUT "enter number of fourth subject",N4

60 INPUT "enter number of fifth subject",N5

70 INPUT "enter total numbers of all subjects",x

80 SUM = N1 + N2 + N3 + N4 + N5

90 z = SUM/x

100 c = z*100

110 IF c>=80 and c<=100 GOTO 170

120 IF c>=70 and c<80 GOTO 190

130 IF c>=60 and c<70 GOTO 210

140 IF c>=50 and c<60 GOTO 230

150 IF c>=40 and c<50 GOTO 250

160 IF c<40 GOTO 270

170 PRINT "grade A+1"

180 END

190 PRINT "grade A"

200 END

210 PRINT "grade B"

220 END

230 PRINT "grade C"

240 END

250 PRINT"grade D"

260 END

270 PRINT "grade f"

280 END

Doesn't it seem to be illogical to use so many END statements. can't we write this as ;

Delete110 IF C>=80 AND <=100 THEN PRINT "GRADE A": GOTO 180

it may also reduce program lines

THANKS A LOT

DeleteCant you simply use loop

Deletedear student check the above program.

ReplyDeletePlz solve this

ReplyDelete1,3,9,27

1*3=3

Delete3*9=27

27*9=63

63*27=1701

up to so on...

Until a few days I used a GWBASIC program, but then it did not work anymore. There is an error message that points to a line: open SN$ for output AS#1

ReplyDeleteDoes anyone know what this means and how I can solve the problem.

Sorry, this does not work. I also get another message at line 3090 that says print ERR, ERL: STOP

ReplyDeletepost your program after that i could say anything about error

DeleteHow to fill a circle in gwbasic?

ReplyDeleteplease give me about some examples of array program

ReplyDelete1)single dimensional array 2)double dimensional array

please reply fast of my above mention program of double and single dimensional array

ReplyDeleteplz reply fast for program that can convert temperature from Fahrenheit to Centigrade and vise versa

ReplyDeleteI WANT A PROGRAM WHICH CAN FIND THE AVERAGE

ReplyDeletedear students all above programs are already in my blog.search them in home

ReplyDeletePlease give us the programme of writing and printing the table of 9.

DeletePlease help us in this problem.(Gw Basic Programming Students)>

We will be thankful to you for this favor and it is being sold for 50000 so please help us.

HALF of the share will be sent to ur house

amir town lahore

10 n=9

Delete20 for i= 1 to 10

30 print n;"x";i;"=";n*i

40 next

hope this will help u and this site is just made for help students not for any profit.thanks for ur considerations .

Asalam Alakum,

ReplyDeleteMadam Beenish I m very happy to see this blog.

Allah gives you a strength to help students like me.

Allah shower his immense blessing on you.

Please help me to write table of any number input by user in GW-BASIC.

Thanks For Helping students.

10 cls

Delete20 input"enter table# you want to print";t

30 for i= 1 to 10

40 print t;"x";i;"=";t*i

50 next i

60 end

pls send me the solve of question. write a program in gw basic to print list of 20 names in descending order.

Delete10. Cls

Delete20.PRINT " MY NAME IS KASHIF";f

30PRINT " I AM NOT A TERRORIST"

40END

50OK

What is the purpose of RAT'S ? (Remote Administrator Tools)

ReplyDeleteHow to use them and what are there relation in Programming language ?

its purpose to hack or remote access of other system. Basically it is used by criminals. Trojan horse like virus is used as this purpose. so beware from it.

ReplyDeletei appreciate your knowledge

DeleteCan you please help me with a program, written in basic, to simulate a pick 6 from 45 lotto draw.

ReplyDeleteI need to draw 18 lines of 6 and not repeat a number until the first 45 have been used.

Thanks in advance. George

Madam I have a problem here when running graphics programs. The program is not run and error message occurs. Error message is "This system does not support full screen mode. Choose close to terminate the application".

ReplyDeleteAfter closing the GW-BASIC compiler was abort.

please tell me the solution of this problem.

REGARDS

nwe operating systems like windows7 does not support graphic mode in GWBASIC

DeleteI Have a Solution, you can check my blog or e-mail me

Deleteblog: https:\\basicbeginners.blogspot.com

e-mail: mahadkhaliqjbd@gmail.com

print 5 MOD 12

ReplyDelete5

how????

as i know it returns remainder

plz reply

hi

ReplyDeletei want help in some of programs plz help me beenish mam

hi..

ReplyDeletePlz tell me the answer of this question...

Q. write a program to input a number N and find its factorials??

i need program a=5 , b=8 exchanging the value of a & b without using third variable

ReplyDeletePlZZZZZZZZZ Help ME

i want programms of arrays

ReplyDeletei need to write a basic program

ReplyDeleteto print odd nos from 20 to 10 using if then else statement

hi..Im student from Informatics engineering, this article is very informative, thanks for sharing :)

ReplyDeletei need a program which can calculate a sum, product and average of 4 numbers using input statement and read data statement

ReplyDeletei need a program which can calculate a sum, product and average of 4 numbers using input statement and read data statement

ReplyDeleteplz ap mri prgrm m help kr dy mra account name zobibutt115@yahoo.com ha

ReplyDeletevery nice

ReplyDeletecreate a program to sort the data from small to large with the data 5,2,4,8,3. help me

ReplyDelete10 DIM NUM(5)

Delete20 FOR K=0 TO 4

30 INPUT NUM(K)

40 NEXT K

50 FOR I=1 TO 4

60 FOR J=0 TO 4-I

70 IF NUM(J) > NUM(J+1) THEN LET TMP=NUM(J):NUM(J)=NUM(J+1):NUM(J+1)=TMP

80 NEXT J

90 NEXT I

100 PRINT "NUMBERS IN ASCENDING ORDER ARE"

110 FOR H=0 TO 4

120 PRINT NUM(H)

130 NEXT H

140 END

AWAIS REHMAN +92-313-8586638

plz describe line# 70

Deletewrite a program to sort the list of 20 names in descending order?

Deleteplease send me the solution of this q.

DeleteThe answer to this question is available here:

Deletehttp://www.numerical.pk/Subjects/CS/Class10th/Arrays/18.aspx

Also visit http://www.numerical.pk/ a great website for students

WRITE A PROGRAM TO TELL THE NUM IS POSITIVE, NEGATIVE OR ZERO

ReplyDeleteA.O.A BEENISH mam its good to see your blog and i am happy with that but plz give a solution of that program {write a program in gw-basic calculating the sum and number of products given by the user in gw-basic that is used in large shopping malls}.

ReplyDeletecity:jauharabad

class:10

I can help you in your project if you want!!

DeletePLZ WRITE A PROGRAM SUM spec MULTIPLE AND DVAIDE IN ONE PROGRAM

ReplyDeleteplzz tel me thesse all ....write a method to start a basic and alo retrun to DOS

ReplyDeleteWRITE A PROGRAM TO CALCULATE UM,MULTIPLY AND AVERAGE OF GIVEN NUMBERS.

write a basic program to calculte the nth power of any number

write a pragram to calculate cum of 1-30 odd numbers

For your 1st Question, Use DOSBOX emulator, in which when the program ends, it brings the user to the DOS. Download it from here

Deletehttp://sourceforge.net/projects/dosbox/?source=dlp

when you download this, install it and then drag and drop the GWBASIC in the DOSBOX shortcut

For 2nd question

05 t=0

10 cls

20 Rem 'A program which Sums, Multiplies and Shows Average of Given Numbers.'

30 Read a,b,c,d,e,f,g,h,i

40 S=a+b+c+d+e+f+g+h+i

50 P=a*b*c*d*e*f*g*h*I

60 A=S/9

70 Print"Sum of the Numbers= ";S

80 print"Products of the Numbers= ";P

90 Print"Average of the Numbers= ";A

100 Data 12,3,6,2,88,6,10,23,58

110 End

I did not understand the next question

For last Question:

10 cls

20 For I=1 to 30 step 2

30 S=S+I

40 Print"Sum of 1-30 odd numbers= ";S

50 End

good job mehad

Deleteyou can check my blog at http:\\basicbeginners.blogspot.com for these programs

ReplyDeletei couldn't find both

ReplyDeleteI have made such a program you can e-mail me or check my blog at http:\\basicbeginners.blogspot.com

Deleteclick on special programs tab

Q: wrrite an algorithm to sum array A elements and array B element in basic

ReplyDeletewrite a program to demonstrate simple arithmetic operations

ReplyDeletewrite a program to calculate the area of triangle ?

ReplyDeletewrite a program to calculate the volume of cylinder ..

Deletewrite a program to calculate the speed of an object

ReplyDeletewrite a program to calculate the conversion of temperature from C to F and vice-versa...

ReplyDeletehttp://basicbeginners.blogspot.com/p/special-programs.html

Deletethanks

Deletewrite a program to demonstrate use of formatted input/output statements ?

ReplyDeletecalculation of grades of class for different students ?

ReplyDeletewrite a program to calculate selection of the largest number out of given 12 numbers without using list 1,2,3,4,5,6,7,8,9,10,11,12

ReplyDeletewrite a program to for the use of iteration of statement (read 5 values from keyboard and find their mean gravity and compare the mean value against actual value 9.8 meters/sec square ).....

ReplyDeletewrite a program which reads 12 values in an array and after doing some arithmetic operations print the desired results .....

ReplyDeletevisit basicbeginners.blogspot.com

DeleteHOW CAN WE DOWNLOAD GW BASIC 2007 ON OUR DESKTOP PLEASE REPLY FAST ??

ReplyDelete2007 basic program is not available yet .

Deletethe pg is available on site gw basicpg

Delete12

ReplyDeleteplzz i want a quick reply

ReplyDeleteMAM write a basic language program to read 15 numbers in an array named NUM

ReplyDeleteSort the numbers in ascending order and print the out put.

All the information about GW Basic is great. Thanks a lot....

ReplyDeletei need help in these problems..

ReplyDeletewrite a program to get two numbers add all numbers b/w two given numbers and print result.

Read the name of ten countries and their capitals in arrays and display them on the screen.

Write a basic program to display 3 roll numbers and student's name from an array and print them on the screen.....

plz quickly reply.....

This comment has been removed by the author.

Delete1)

Delete10 CLS

20 INPUT"ENTER A STARTING NUMBER=",A

30 INPUT"ENTER A STOPPING NUMBER=",B

40 FOR COUNTER=A TO B

50 SUM=SUM+COUNTER

60 NEXT

70 PRINT"SUM OF ALL NUMBERS=";SUM

80 END

plz help mjy star ban,nay ka program chayia plzz any one help me???

ReplyDeletemuje b quickly

DeleteMiss ap Ny achy programs samjha dea ha apkoi problem nai ha ,,,, thanx alot

ReplyDeletemy pleasure

DeleteDear visitors all the solutions of above mentioned programs are already in my blog..plz look them in Blog Archive ...thanks for appreciate my work

ReplyDeleteplz tell me what is the maximum number of elements in a 2-D array when the dimension is not mentioned?

ReplyDeleteiwant a program of if then else statement

ReplyDeletePLEASE CORRECT the following statement

ReplyDelete10 CLS

20 INPUT"ANY NAME";N

30 PRINT N 10 TIMES

40 END

20 INPUT "ANY NAME";N$

DeletePlease tell me, How to write a program in which we calculate square and cube of 1 to 10 numbers.

ReplyDeletePLEASE TELL ME HOW TO WRITE A PROGRAM IN WHICH WE CALCULATE MARKS OF FIVE SUBJECTS AND FIND PERCENTAGE ALSO.

ReplyDeleteplz help me i want your help it is always giving error plzzz

ReplyDeleteI want to try a program that input 50 country n display their capital as output

ReplyDelete..can u gve me some example..pls..

that program using c

ReplyDeleteVery helpful for beginners.

ReplyDeleteI need a program that can arrange any ten numbers in ascending order......plz help me fast I need it in about an hour... Please. ..help

ReplyDeleteyou are actually doing a great job...

ReplyDeletei need a program by using if-then-else statement with array immediately

ReplyDeleteHOW TO WRITE A PROGRAM WHICH TAKES A SERIES AND PRINT THE CODE FOR IT

ReplyDeleteyou stupid don't you know???????

DeleteAm I Bigger stupid than u????????????????????

Deletehi beenish aunty

ReplyDeleteI want a program to find the largest no entered by array

ReplyDeletehi

ReplyDeleteplease i need help on how to write a program to compute the roots of a quadratic equation. we can test the program with A=2, B= - 4 AND C=1.

Can you please help me in writing "Program to sort the list of 20 names in descending order" Your help will be appreciated..

ReplyDeleteThe answer to this question is available here:

Deletehttp://www.numerical.pk/Subjects/CS/Class10th/Arrays/18.aspx

Also visit http://www.numerical.pk/ a great website for students

i want a program.write a program which print 4,7,12,19 and 28

ReplyDeletei want a program

ReplyDeletewrite a program to print a table by using for next loop

i want a program

ReplyDeletewrite a program to print a table of 10 by using for next loop

I want a program (formula) that will change 10ths to 5ths with out changing the values to the left of the decimal. Example: I want to change 141.8 to 141.4.

ReplyDeleteplease tell me how to print a source program and its output in the middle of the page.. is there any margin settings?

ReplyDeletewrite a program to input N strings and form a new string with the first and last characters of each string

ReplyDeleteA PRORAM TO KNOW THE FACTORS OF A NUMBER

ReplyDeletei want a program to find fictorial by using FOR---NEXT loop

ReplyDeletei am having for while wend ...

DeleteAuto

10 input"Enter the number n";n

20 f=1 ;a=n

30 while n=0

40 f=f*n

50 n=n-1

60 wend

70 print "factorial of";a"=";f

80 end

run

output:-

enter the number n? 5

factorial of 5=120

i didnt get my output on screen which key to press i do for the output any 1 tell me plzzz

ReplyDeleteBy Computer Practical Book Of Dr.Saifuddin ;)

ReplyDeleteplz sent me program of to check wheather the number is positive, negative, or zero

ReplyDeletehow to make a user defined function to calculate factorial of a given number?

ReplyDeletei need a programe that can arrange any 10 number in ascending order

Delete10 CLS

Delete20 INPUT "ENTER A NO.";A

30 PRINT A

40 A=A+1

50 IF A<=(A+10) THEN GOTO 30

60 END

I want to make a program,

ReplyDeleteWhich is; A program to input names and if a name starts with "Z" display a massage "end of the list" and stop the execution the output must be formatted and display as shown below;

LIST OF NAMES

NAMES

A

C

G

S

D

E

Z "END OF THE LIST"

why are u teaching the shit to students in year 2014??? this langauge is model 1987 (30 years old technology)

ReplyDeleteHello,

ReplyDeletePlease, teach me how to solve this QUESTION.

QUESTION

Write a simple Basic Program to find the average of ten scores which are 1, 5, 10, 15, 8, 9, 2, 7, 3, 4.

Thank you.

10 cls

Delete20 read a,b,c,d,e,f,g,h,i,j

30 let total=a+b+c+d+e+f+g+h+i+j

40 let avr=total/10

50 print ;total

60 print ;avr

70 data 1,5,10,15,8,9,2,7,3,4

80 end