Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
domain.com
14th Dec Project1 v0.4
lab6
palindrome.c
Float data type.c
SOLUCIONES_TRABAJO_05
lab pro v.05
asdfs
My C Code
Sumit
Please log in to post a comment.