+ 3
Can some one help me with this plz?
7 Réponses
+ 13
+ 4
#include <iostream>
using namespace std;
int main() {
int b;
int a=35;
cout <<"enter your marks:"<<endl;
cin >> b;
if (b>=a)
{cout <<"congrats:"<<endl;
cout <<"you are pass:"<<endl;
}
else if (b<a){
cout <<"sorry:"<<endl;
cout <<"you are Fail:"<<endl;
}
return 0;
}
+ 3
here you go. you can make else if() ststements like thst. also do not forget about SEMICOLONS!!!
+ 2
thanks paul and nithiwat
0
#include <iostream>
using namespace std;
int main() {
int a, b;
a=35
cout <<"enter your marks:"<<endl;
cin >> b;
if (b>=a){
cout <<"congrats:"<<endl;
cout <<"your are Pass:"<<endl;
}
else if (b<a){
cout <<"sorry:"<<endl;
cout <<"you are Fail:"endl;
}
return 0;
}
0
hi my name is Ayo but I am using my mum's email AC to log in but I took permission before doing so.
0
I'm a boy. so you are correct but let me go through it