+ 1
Why this program not run ?
I am trying make a C++ program But not run. Do you know false in this program https://code.sololearn.com/cvPI2IwHDjKB/?ref=app
11 Respuestas
+ 7
You declared your variable like this "Value" but used it like this "value".
Remember, cpp is case sensitive.
Change it to "int value;"
And the second problem is that you wrote "cin<<value;"
change that to "cin>>value;"
+ 6
//Let's try this code 
#include <iostream>
using namespace std;
int main(){
         
   int Value;
    cout<<"Enter your value:  ";
    cin>>value;       //You have an error, you use wrong sign. ('>>' are correct)
   if(value>75) {
    cout<<"Congratulation\n";
}
  else {
  cout<<"Sorry\n";
 }
 
return 0;
}
+ 6
You didn't change cin<<value; to cin>>value;
+ 6
This is what you want:
https://code.sololearn.com/c0m1SyDb4rbX/?ref=app
+ 6
Np, you're welcome(:
+ 5
cin>>value;
+ 4
+ 3
but it say "compilation error" please you try.
+ 3
@Nithiwat your program error too
+ 3
@ Tim G. Thanks for your help 






