#include <iostream> using namespace std; int main() { int a=20, b=30,c; int c= a*b; cout<<"the result is"<<c; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:6:6: error: redeclaration of ‘int c’ int c= a*b; ^ prog.cpp:5:17: note: ‘int c’ previously declared here int a=20, b=30,c; ^
Standard output is empty