04.01.2023 Views

Documento sin título (1)

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}

printf("el sobrante es:%f\n",sobrante);

}

}

}

break;

default:

printf("elija un numero de 1 o 2\n");

}

return 0;

par-impar

#include<stdio.h>

int main() {

float cont;

int numero;

printf("Dame un numero\n");

scanf("%d",&numero);

if (numero % 2 == 0) {

printf("el numero es par\n");

} else {

printf("el numero es impar\n");

}

return 0;

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!