|
@ -3,13 +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 kgV of:\n"); |
|
|
int firstNum = usergetd("first number: ", NULL, NULL); |
|
|
int firstNum = usergetd("first number: ", NULL, NULL); |
|
|
int secondNum = usergetd("second number: ", NULL, NULL); |
|
|
int secondNum = usergetd("second number: ", NULL, NULL); |
|
|
int result = kgV(firstNum, secondNum); |
|
|
int result = kgV(firstNum, secondNum); |
|
|
printf("The result is: %d\n", result); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("The kgV of %d and %d is: %d\n", firstNum, secondNum, result); |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |