Untitled

 avatar
unknown
plain_text
5 months ago
449 B
2
Indexable
// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
int main() {
float t[2][7]{{14.5,15.6,17.7,18.2,20.5,22.3,24.5},
                         {18.5,17.9,14.2,20.2,22,30,24}};
float mesatare=(t[0][0]+t[0][1]+t[0][2]+t[0][3]+t[0][4]+t[0][5]+t[0][6])/7;
cout<<"Mesatarja eshte"<<mesatare<<endl;
int shuma=0;
for(int i=0; i<7; i++)
{
    shuma=shuma+t[0][i];}
    cout<<"Shuma eshte"<<shuma<<endl;


    return 0;
}
Editor is loading...
Leave a Comment