+ 1
Can someone explain
#include <iostream> using namespace std; int main() int ppl; //number of ppl needing candles const int candles = 9; //candles per person int need; cout << "how many people need candles"; cin >> ppl; need = ppl * candles; cout << need; return 0; } Gives the following Line 6, expected initializer before int 9 ,11, 12 cout does not declare a type 10 cin does not declare a type
1 Answer
+ 3
You are missing an open curly brace after main() method.