write a program that accept 100 integer values from the keyboard, then compute and display their sum?(hint use two dimensional array)
Answers
Answered by
1
Answer:
#include<iostream>
using namespace std;
int main(){
int arr[100],i;
long sum=0;
for(i=0;i<100;i++){
cin>>arr[i];
sum+=are[i];
}
cout<<"Sum : "<<sum<<endl;
}
Similar questions
Hindi,
6 months ago
English,
6 months ago
Social Sciences,
6 months ago
Math,
1 year ago
CBSE BOARD X,
1 year ago
Biology,
1 year ago