fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int marks[5],i;
  6. cout << "enter the marks\n";
  7. for(i=0;i<5;i++)
  8. {
  9. cin >> marks[i];
  10. }
  11. cout<<"the marks u entered are\t"<<marks[i];
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0s 4260KB
stdin
1, 2, 3, 4, 5
stdout
enter the marks
the marks u entered are	21893