#include<iostream> using namespace std; int main() { int i = 1; for (j = 1; j <= 10; j++) { i *= j; } cout << "10펙토리얼 값은" << i << endl; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:5:7: error: ‘j’ was not declared in this scope for (j = 1; j <= 10; j++) { ^
Standard output is empty