#include <iostream>
using namespace std;
int main()
{
int a[]={4, 6, 25, 8, 5};
int sum=0;
for (int i=0; i<5; i++)
{
sum = sum + a[i];
}
cout << sum;
}
using namespace std;
int main()
{
int a[]={4, 6, 25, 8, 5};
int sum=0;
for (int i=0; i<5; i++)
{
sum = sum + a[i];
}
cout << sum;
}
No comments:
Post a Comment