8 Example-1 Write a program to compute the following functions: A=X2+Y2 B=A2+XY C=(A+B)2 Solution Let x=5 Let y=7 A=X^2+Y^2 B=A^2+X*Y C=(A+B)^2 Print a,b,c Example-2 Write a program to compute the area and circumference of triangle it sides x=4,y=3. Write a program to print the sum of first 20 odd numbers in QBasic.? Simple program required not complex. WAP to print the sum of the numbers between 2 to 5. DECLARE. SUB SERIES ( )CLSCALL. SUM OF NUMBERS BETWEEN 2 TO 5. SEND. SUB1. 70. WAP to print the sum of the numbers between 3 to 3. DECLARE. SUB SERIES ( )CLSCALL. SUM OF NUMBERS BETWEEN 3 TO 3. SEND. SUB1. 72. WAP to print the sum of even numbers between 2 to 5. DECLARE. SUB SERIES ( )CLSCALL. I = 2 TO 5. 0 STEP 2. S. “SUM OF EVEN NUMBERS BETWEEN 2 TO 5. SEND. SUB1. 74. WAP using to print the sum of first ten positive. DECLARE. SUB SERIES ( )CLSCALL. How to find the sum of all odd numbers from 1 to input n Using For. Next Another tutorial by my sis. Write a program in qbasic using do loop to print all the odd numbers between 10-100 Reply Delete Replies Deepak Shrestha February 28, 2016 at 6:00 AM CLS A = 11 DO PRINT A, A = A + 2 LOOP WHILE A <= 100 END Delete. PRINT PRINT ' Esc = Exit Program' PRINT DO UserIn$ = UCASE$(INKEY$) LOOP UNTIL INSTR(' ABC ', UserIn$) > 1 OR UserIn$ = CHR$(27) IF UserIn$ = CHR$(27) THEN END PRINT PRINT PRINT ' There are limits to the size of the numbers that can be. A) To print the product of two numbers only if product exceeds 400. The loop should run for 10. SUM OF FIRST TEN POSITIVE INTEGERS” ; SEND. SUB1. 75. WAP to print first ten multiples of input number. CLSINPUT. “ENTER ANY NUMBER”; NFOR. I = 1 TO 1. 0 PRINT. SUB SERIES ( N)CLSINPUT. ENTER ANY NUMBER”; NCALL. SERIES (N)ENDSUB. I = 1 TO 1. 0 PRINT. SUB1. 76. WAP using to. DECLARE. SUB SERIES ( )CLSCALL. I = 1 TO 1. 3 PRINT. SUB1. 78. WAP to print the. WAP using to. display product of all numbers from 4 to 8. DECLARE. SUB SERIES ( )CLSCALL. PRODUCT OF ALL NUMBERS FROM 4 TO 8”; PEND.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2017
Categories |