Can someone tell me why this programm gives only the cout text?
#include "iostream"
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
float x;
int y[50];
int n;
cout << "Dati notele despartindule prin Enter";
for ( n = 0; n == 5; n++) {
cin >> y[n];
if (n >= 1) {
y[n] = y[n - 1] + y[n];
}
}
x = y[n] / (n + 1);
cout << x;
return 0;
}