Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
A_141117_Euclides
#include <stdio.h> #include <stdlib.h> int main() { short a, b; short aa, bb, aux; printf("Valor de a ... "); scanf(" %hd", &a); printf("Valor de b ... "); scanf(" %hd", &b); aa = a; bb = b; while(bb != 0) { aux = aa; aa = bb; bb = aux % bb; } printf("mcd de %hd y %hd es %hd\n\n", a, b, aa); return 0;
run
|
edit
|
history
|
help
0
scanf and integer manipulation
PI
Memory leak
Sunday assignment late v3
addition
Lab 8 part 2 v.05
The endless numbers.
exercises
signaling NaN test
poist