fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. float NOTA=0;
  7. cout <<"Ingrese nota" <<endl;
  8. cin>>NOTA;
  9. if (NOTA >= 5) {
  10. cout<<"Felicidades has aprobado"<<endl;
  11. }else{
  12. cout<<"Felicidades has suspendido";
  13. }
  14. return 0;
  15. }
  16.  
  17.  
  18.  
  19.  
Success #stdin #stdout 0s 5308KB
stdin
5
stdout
Ingrese nota
Felicidades has aprobado