Make a program that will calculate the sum of ten(10) numbers prompt by the end users?

Ad

Hi Friend,

This is a python command solution.you can download the python IDE from this link and get down to buisiness.

www.python.org/download

And here is my example.....

>* >>> L=[]*>

Good Luck!!!

Posted on Jun 23, 2009

Ad

Hi,

a 6ya expert can help you resolve that issue over the phone in a minute or two.

Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.

the service is completely free and covers almost anything you can think of.(from cars to computers, handyman, and even drones)

click here to download the app (for users in the US for now) and get all the help you need.

Goodluck!

Posted on Jan 02, 2017

Ad

The sum is the result of an addition.

When you add two numbers, the result you find is the sum of the two numbers.

15+10=25. The sum of 15 and 10 is 25.

When you add two numbers, the result you find is the sum of the two numbers.

15+10=25. The sum of 15 and 10 is 25.

Sep 22, 2014 | Office Equipment & Supplies

Formulas are used to specify calculations based on values in designated cells. Excel supports basic calculations as well as statistical, trigonometric and other specialized functions.

Formulas used in Excel must follow a certain syntax.

- All formulas begin with an equals sign
**(=)**. - Some formulas use operands such as
**+,-, *,/**for addition, subtraction, multiplication or division.

For example, the formula =A1+A2+A3 would add the contents of cells A1, A2 and A3. - Other formulas refer to different functions such as SUM, AVERAGE and others.

For example, the formula =SUM(A1:A3) would add the contents for the range A1 through A3. - Formulas can be
**combined with operands.**

For example, the formula =10*SUM(A1:A3) would add the contents cells A1 through A3 and multiply them by 10. - Functions can
**be nested within each other.**

For example, the formula =SQRT(10*SUM(A1:A3)) would take the square root of ten times the sum of cells A1 through A3. When functions are nested, it is important that the number of left parentheses match the number of right parentheses.

Aug 19, 2011 | Microsoft EXCEL 2004 for Mac

There are two possible answers to the above question, 4136 and 7348.

__4136__

My ones is twice my tens: The 6 (the ones) is twice as big as the 3 (the tens).

My hundreds is five less than my ones: 6 (the one) - 5 = 1

My thousands place is the sum of my tens and hundreds: 3 (the tens) + 1 (the hundreds) = 4

My ones is twice my tens: The 6 (the ones) is twice as big as the 3 (the tens).

My hundreds is five less than my ones: 6 (the one) - 5 = 1

My thousands place is the sum of my tens and hundreds: 3 (the tens) + 1 (the hundreds) = 4

Jun 26, 2011 | Office Equipment & Supplies

1

2

3

4

5

6

7

8

9

153

370

371

407

1634

8208

9474

54748

92727

93084

548834

Jan 06, 2011 | Computers & Internet

#include<stdio.h>

#include<conio.h>

main()

{

int flag=0,flag1=0;

int s[10],d[10],sn,eop=1,dm,a[10][10];

int i,j,sum=0,min,x[10][10],k,fa,fb;

clrscr();

/* Getting The Input For the Problem*/

printf("Enter the number of Supply

");

scanf("%d",&sn);

printf("Enter the number of Demand

");

scanf("%d",&dm);

printf("Enter the Supply Values

");

for(i=0;i<sn;i++)

scanf("%d",&s[i]);

printf("Enter the Demand Values

");

for(j=0;j<sn;j++)

scanf("%d",&d[j]);

printf("Enter the elements of the array

");

for(i=0;i<sn;i++)

{

for(j=0;j<dm;j++)

{

scanf("%d",&a[i][j]);

}

}

/* Calculation For the Transportation */

i=0;j=0;

for(i=0,j=0;i<sn,j<dm;)

{

if(s[i]<d[j]) // Check supply less than demand

{

x[i][j]=a[i][j]*s[i]; // Calculate amount * supply

d[j]=d[j]-s[i]; // Calculate demand - supply

i++; // Increment i for the deletion of the row

or

column

}

else if(s[i]>=d[j]) //Check the supply greater than equal to

demand

{

x[i][j]=a[i][j]*d[j]; // Calculate amount * demand

s[i]=s[i]-d[j]; // Calculate supply - demand

j++; // Increment j for the deletion of the row

or

column

}

}

/* The Cost Matrix is Estimated here */

printf("Given Cost Matrix is :

");

for(fa=0;fa<sn;fa++)

{

for(fb=0;fb<dm;fb++)

{

printf("%d ",a[fa][fb]);

}

printf("

");

}

/* The Allocated Cost Matrix is */

printf("Allocated Cost Matrix is

");

for(fa=0;fa<sn;fa++)

{

for(fb=0;fb<dm;fb++)

{

printf("%d ",x[fa][fb]);

sum=sum+x[fa][fb];

}

printf("

");

}

/* Transportation Cost Estimated and Sum is Printed*/

printf("The Transportation cost:%d

",sum);

getch();

}

#include<conio.h>

main()

{

int flag=0,flag1=0;

int s[10],d[10],sn,eop=1,dm,a[10][10];

int i,j,sum=0,min,x[10][10],k,fa,fb;

clrscr();

/* Getting The Input For the Problem*/

printf("Enter the number of Supply

");

scanf("%d",&sn);

printf("Enter the number of Demand

");

scanf("%d",&dm);

printf("Enter the Supply Values

");

for(i=0;i<sn;i++)

scanf("%d",&s[i]);

printf("Enter the Demand Values

");

for(j=0;j<sn;j++)

scanf("%d",&d[j]);

printf("Enter the elements of the array

");

for(i=0;i<sn;i++)

{

for(j=0;j<dm;j++)

{

scanf("%d",&a[i][j]);

}

}

/* Calculation For the Transportation */

i=0;j=0;

for(i=0,j=0;i<sn,j<dm;)

{

if(s[i]<d[j]) // Check supply less than demand

{

x[i][j]=a[i][j]*s[i]; // Calculate amount * supply

d[j]=d[j]-s[i]; // Calculate demand - supply

i++; // Increment i for the deletion of the row

or

column

}

else if(s[i]>=d[j]) //Check the supply greater than equal to

demand

{

x[i][j]=a[i][j]*d[j]; // Calculate amount * demand

s[i]=s[i]-d[j]; // Calculate supply - demand

j++; // Increment j for the deletion of the row

or

column

}

}

/* The Cost Matrix is Estimated here */

printf("Given Cost Matrix is :

");

for(fa=0;fa<sn;fa++)

{

for(fb=0;fb<dm;fb++)

{

printf("%d ",a[fa][fb]);

}

printf("

");

}

/* The Allocated Cost Matrix is */

printf("Allocated Cost Matrix is

");

for(fa=0;fa<sn;fa++)

{

for(fb=0;fb<dm;fb++)

{

printf("%d ",x[fa][fb]);

sum=sum+x[fa][fb];

}

printf("

");

}

/* Transportation Cost Estimated and Sum is Printed*/

printf("The Transportation cost:%d

",sum);

getch();

}

Apr 08, 2009 | Computers & Internet

Q.2# Dim n, sum as Double

Dim i as Integer

n=100

sum=0

for i=1 to n

sum=sum+1/n

next i

Q.3# Dim sum as Double

sum=0

for i=1 to 99

if i%2 <> 0 then sum=sum+i end if

next i

Dim i as Integer

n=100

sum=0

for i=1 to n

sum=sum+1/n

next i

Q.3# Dim sum as Double

sum=0

for i=1 to 99

if i%2 <> 0 then sum=sum+i end if

next i

Sep 16, 2008 | Microsoft AccRepair DS2 2004 for Fr...

147 people viewed this question

Usually answered in minutes!

×