create a c++ program that will ask 10 numbers and display
their sum using array.
Answer / sneha shahade
#include<conio.h>
#include<iostream.h>
void main()
{
int a[10],i,s=0;
cout<<"enter 10 numbers";
for(i=0;i<10;i++)//loop to get 10 no. in array
cin>>a[i];
for(i=0;i<10;i++)//loop to find sum of 10 no.
s=s+a[i];
cout<<"sum is:"<<s;//display sum
getch();
}
Is This Answer Correct ? | 9 Yes | 0 No |
Can you explain polymorphism?
what is function over loading?
what is the 3 types of system development life cycle
what is namespace? what are the uses of namespace?
Difference between over loading and over ridding?
12 Answers CTS, Patni, Softvision Solution,
sir i want to know which posting to apply since i am BE CSE.. also want to know what are the rounds there for my interview...Expecting for ur valuable answer....
Conversion from a basic type to a class type may be achieved using______________
which feature are not hold visual basic of oop?
polymorphism means?
What is oops in programming?
What is abstrac class?where is it use?
What makes a language oop?