Untitled

 avatar
unknown
plain_text
2 months ago
401 B
1
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 numrave eshte: " << shuma << "\n\n";
  
  system("PAUSE");
  return EXIT_SUCCESS;
}
Leave a Comment