Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

create a c++ program that will ask 10 numbers and display
their sum using array.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the full form of oops?

1139


What is an example of genetic polymorphism?

1131


class type to basic type conversion

2349


What is the real life example of polymorphism?

1126


Why is static class not inherited?

1064


Why do while loop is used?

994


What is abstraction encapsulation?

1080


What are constructors in oop?

1111


Can you explain polymorphism?

1065


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6639


write a program that takes input in digits and display the result in words from 1 to 1000

2379


What is polymorphism what is it for and how is it used?

985


How to call a non virtual function in the derived class by using base class pointer

6449


How is class defined?

1084


Can bst contain duplicates?

1161