answersLogoWhite

0


Best Answer

10 cls

11 c = 0

20 for n =1 to 10

30 input"enter no.";a

40 c=c+a

50 next n

60 print c

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to find the sum of given 10 nos in qbasic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Find the sum of 1 plus 2 plus 3 plus . plus n nos using c program?

if (n%2==0) sum=n/2*(n+1); else sum=(n+1)/2*n;


Write the program in qbasic and add two numbers?

Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end


Write a pseudo code to find the sum of digits of a given number reducing them to a single digit?

5


Write a c program to find the sum of numbers between given limits?

int sum (int min, int max) {return (max-min+1)*(max+min)/2;}


Can you write a source code to find the sum and the largest number of a given array?

In Java, assuming you already created an array of int's, called myArray:int max = myArray[0];int sum = 0;for (int i = 0; i < myArray.length; i++){sum += myArray[i];if (myArray[i] > max)sum = myArray[i]}

Related questions

How do you find the sum of nos in a series?

It depends on the series.


How to sort the sum of numbers in qbasic?

You use the relevant formula.


Write a programme to find the sum and product of three numbers?

//sum and product of 3 nos #include #include void main() { int a,b,c; printf("enter the 3 nos"); scanf("%d%d%d",&amp;a,&amp;b,&amp;c); printf("sum of 3 nos",a+b+c); printf("product of 3 nos",a*b*c); getch(); }


Their sum is 0, and the product is -64 what is the value of both number?

The nos. Are 8 and -8 Sum of the nos. 8+(-8)=0 Product of the nos. 8 × (-8) = -64


The sum of six consecutive odd nos is 888 What is the average of the nos?

148


What are even nos between 100 to 300 that is the sum of two prime nos?

Each one of them can be expressed as a sum of two primes.


How do you add numbers in qbasic?

-- Think of a name for the sum, like 'S'.-- Tell qbasic what 'S' is the sum of.S = 41 + 61 + 2 + 84 + 136-- If you want to see it on the screen, thenPRINT Sand the sum pops up. It looks like this on the screen:324


How can you Express 121 as a sum of 2 prime nos?

11x11


The product of two consecutive odd integers is 2 less than six times their sum can you find the two integers?

there cannot be any nos like that.. product of 2 odd nos is odd.. sum of two even nos is even.. that multiplied by six is even too.. subtracting 2 from that also gives an even no.. let x and y be the odd integers. according to the given question xy=6(x+y)-2..here we r actually equatin an odd no and an even no.. which is wrong.. so there cant be any two consecutive odd nos that fit in the question


The sum of 3 consecutive nos is 777find the nos?

777/3 = 259. So the numbers are 258, 259 and 260.


What two nos have a sum of 5 and product of 6?

2 and 3.


Find the sum of 1 plus 2 plus 3 plus . plus n nos using c program?

if (n%2==0) sum=n/2*(n+1); else sum=(n+1)/2*n;