" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
using namespace std;
int main(){
int n;
cout << "Podaj ilość liczb" << endl;
cin >> n;
int suma = 0 ;
for(int i=0;i<n;i++){
suma += i * i;
}
cout << "suma : " << suma << endl;
f.close();
return 0;
}