0
Can you remove the errors please!!
#include <iostream> using namespace std; int main() int a=10; int b=9; if(a>b) { cout<<"a is greater than b"; }else{ cout<<"a is lesser than b"; }
2 Respostas
+ 1
Main function braces missing...
proper way writing in main function :
int main()
{
//your instructions write here
..
}
0
Even tho people informed you enough to be able to solve it on your own ,still read on what is main function , program when executed calls the main function which includes all the logic of your app and functions that you want to run
https://www.sololearn.com/learn/CPlusPlus/1602/