#include main() { int n,s=0,p=1; cout << "n="; cin >> n; for (int i=1; i<=n; i++) { s+=i; p*=i; } cout << "s=" << s; cout << "p=" << p; return 0; }