fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. float num1 = 10;
  7. float num2 = 20;
  8.  
  9. int resposta;
  10.  
  11. printf(num1 < num2 ? "Sim\n":"Nao\n");
  12.  
  13. resposta = num1 < num2 ? 10: -10;
  14.  
  15. printf("%i\n", resposta);
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 4388KB
stdin
Standard input is empty
stdout
Sim
10