Untitled

 avatar
unknown
plain_text
a month ago
426 B
2
Indexable
#include <cstdlib>
#include <iostream>
using namespace std;

int main(int argc, char *argv[]) 
{
    int nr[10];
    int shuma = 0;
    cout << "jepni 10 nr te plote. \n";  
    
    for(int i = 0 ; i < 10 ; i++ )
    {
        cout << "Nr " << i + 1 << ": ";
        cin >> nr[i];
        shuma += nr[i];
    }
    
  cout << "\n\n Shuma e ketyre eshte: "  << shuma << "\n\n";
  
   system("PAUSE");
   return EXIT_SUCCESS;
}
Leave a Comment