Can anyone tell me what's wrong with this code please..
#include <iostream>
int main()
{
int a;
int b;
int salary;
cout<<"Enter hours worked (-1 to end):";
Type: Posts; User: hsumonkey
Can anyone tell me what's wrong with this code please..
#include <iostream>
int main()
{
int a;
int b;
int salary;
cout<<"Enter hours worked (-1 to end):";
:confused: :confused: :confused: :confused:
While ( x <= 100 )
total += x
++x;
any idea what's wrong with this code? I am so lost :mad:
Thanks guys for replying. But I am still missing a ";" any idea guys?
error C2143: syntax error : missing ';' before 'if'
What do you mean my quotes are wrong? I am still confused
Hi,
I am new beginner in C++ and I have question about this coding. Can anyone tell me where's the error? :confused:
if(age>=65);
cout<<"Age is greater than or equal to 65"<<endl;
else...