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
swapping using call by reference
Lab 9 v0.9
Project 3 Part 1 v1.5
C(gcc) Local Time and math.h Example
TopRightTriangle.c
1.7 Test parallel function
FahrenheitToCelciusReverse
asdfs
-Wall
ctest