fork download
  1. #include <stdio.h>
  2. int main() {
  3. int num1, num2;
  4. printf ("introduce dos numeros enteros: ") ;
  5. scanf ("%d %d", &num1, &num2 );
  6.  
  7. if (num1 <= num2) {
  8. if (num1 == num2) {
  9. printf("resultado: %d = %d",num1,num2) ;
  10. }
  11. else{
  12. printf("resultado: %d < %d",num1,num2) ;
  13. }
  14. }
  15. else {
  16. printf("resultado: %d < %d",num1,num2) ;
  17. }
  18.  
  19. return 0 ;
  20. }
Success #stdin #stdout 0s 5308KB
stdin
1
2
stdout
introduce dos numeros enteros: resultado:  1 < 2