Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C_141113_dividirRestasSucesivas
//Title of this code #include <stdio.h> int main(void) { short x, d, c; short aux; printf("Valor de x: "); scanf(" %hd", &x); printf("Valor de d: "); scanf(" %hd", &d); aux = x; c = 0; while(aux >= d) { aux -= d; c++; } printf("El cociente de %hd y %hd es %hd\n", x, d, c); printf("El resto de %hd y %hd es %hd\n", x, d, aux); return 0; }
run
|
edit
|
history
|
help
0
decr
Taco Code
muuchas funciones utiles
14th Feb Programming Project v.01
C_141113_euclides
DISEÑO DE TECLADO
strend
CO Assignment 1 Question 1
Nice1
good Job