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 |
What is nutshell in programming language?
1 Answers Satyam, Tech Mahindra,
explain dynamic binding by drowing
What is the difference between the C & C++?
what are the different types of qualifier in java?
write a program to find the largest of two numbers without using for,while,switch,if else, conditional operator and do while using c++ pgmng language
officer say me - i am offered to a smoking , then what can you say
Plese get me a perfect C++ program for railway/airway reservation with all details.
Why do we use oop?
features of OOPS
22 Answers Ness Technologies, Satyam,
What are the 4 pillars of oop?
What is polymorphism what is it for and how is it used?
WHAT IS THE DIFFERENCE BETWEEN OBJECT BASED & OBJECT ORIENTD PROGRAMMING LANGUAGE.(GIVE AT LIST 4 PIONT)