fork download
  1.  
  2. class Gema
  3. {
  4. public static void main (String[] args) throws java.lang.Exception
  5. {
  6. int myNum = 10+10;
  7. System.out.println(myNum);
  8. }
  9. }
Success #stdin #stdout 0.1s 54628KB
stdin
#include <iostream>

using namespace std;

int main() {
  int numero;

  cout << "472+133: ";
  cin >> numero;

  if (numero > 0) {
    cout << "El número " << numero << " es positivo." << endl;
  } else if (numero < 0) {
    cout << "El número " << numero << " es negativo." << endl;
  } else {
    cout << "El número " << numero << " es cero." << endl;
  }

  return 0;
}
stdout
20