fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int num1 = 10;
  5. int num2 = 20;
  6. printf(num1 < num2 ? "sim\n" : "nao\n");
  7. int resposta = num1 < num2 ? 10 : -10;
  8. printf("%i\n", resposta);
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/274098/101
Success #stdin #stdout 0s 4240KB
stdin
Standard input is empty
stdout
sim
10