Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
B_14118_RestasSucesivas
//Title of this code #include <stdio.h> int main(void) { short n, d; short c; printf("Valor de n ... "); scanf(" %hd", &n); printf("Valor de d ... "); scanf(" %hd", &d); if(d == 0) { printf("División por cero\n\n"); } else { while(n >= d) { n -= d; c++; } printf("Cociente: %hd\n", c); printf("Resto: %hd\n", n); } return 0; }
run
|
edit
|
history
|
help
0
B_141205_funciones
% with negative numerator and positive denominator (gcc)
with goto, with j++
gkckibvsj
Ad
Max3
Answer for last midterm question
MatrixMul_shortxshort
PER problem 2
A_141205_ContadorPalabras