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 |
Write a program in c++ to read two floating point numbers and find their sum and average.
What is abstraction example?
What is abstraction?
What is solid in oops?
What is oops with example?
How many human genes are polymorphic?
write a short note on Overloading of Binary Operator?
What is inheritance in oop?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Why do we use encapsulation in oops?
which feature are not hold visual basic of oop?
Can we have a private virtual method ?