0
what is the problem in the code?
#include <iostream> using namespace std; int main() { int sum, a; sum = 0; while (TRUE) { cout << " Give a number: " << endl; cin >> a; if (a == 0) break; sum = sum + a; } cout << " The sum of the numbers is: " << sum << endl; return 0; } When I am going to compile this code, it says " 'TRUE' was not declared in this scope while (TRUE)
1 Answer
+ 3
hmm nevermind..it just wanted 'true' with small letters :p