|
@ -3,11 +3,11 @@ |
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
|
int main(){ |
|
|
int main(){ |
|
|
printf("add two numbers:\n"); |
|
|
|
|
|
|
|
|
printf("Please add the two numbers you want the ggT of:\n"); |
|
|
int firstNum = usergetd("first number: ", 0, NULL); |
|
|
int firstNum = usergetd("first number: ", 0, NULL); |
|
|
int secondNum = usergetd("second number: ", 0, NULL); |
|
|
int secondNum = usergetd("second number: ", 0, NULL); |
|
|
int result = ggT(firstNum, secondNum); |
|
|
int result = ggT(firstNum, secondNum); |
|
|
printf("The ggT is: %d\n", result); |
|
|
|
|
|
|
|
|
printf("The ggT of %d and %d is: %d\n", firstNum, secondNum, result); |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|