+ 9

Wats the problem ? I cant find the problem. Thanks

#include <iostream> using namespace std; int main() { int a,b; cout<<"please inter the number"<<endl; cin>>a; b=a%2; if(b==0) { cout<<"your number its even"; } alse { cout<<"your number its odd "; } return 0; }

28th May 2018, 9:27 AM
Tzama
Tzama - avatar
6 Respostas
+ 7
thanks for your help☺🖑
20th Dec 2018, 4:19 PM
Tzama
Tzama - avatar
+ 13
thanks for youer help
28th May 2018, 10:25 AM
Tzama
Tzama - avatar
+ 4
else
28th May 2018, 9:35 AM
Vlad Serbu
Vlad Serbu - avatar
+ 3
alse isnt a word it’s else
28th May 2018, 9:43 AM
TurtleShell
TurtleShell - avatar
+ 3
Yah that's else and just remove using namspace std
28th May 2018, 10:10 AM
BALOOCH ANZARAHMEDKHAN ZAKIRAHMEDKHAN
BALOOCH ANZARAHMEDKHAN ZAKIRAHMEDKHAN - avatar
+ 2
we can not change the spellings of a keyword,it results in a syntax error,and "else"is a keyword,so use the same spellings of the keywords.
21st Jun 2018, 4:29 PM
Wajeeha Ali
Wajeeha Ali - avatar