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
A_141110_Perfecto
-Wall
Assignment 5 Cos(x)
strend
square pyramid
Anutter juan
Finite State Machine Program Example (ECE 2534)
1, 2, 3, & 4-layer neural networks in C
test
B_141209_EsMayor