|
|
@ -0,0 +1,10 @@ |
|
|
|
#include "add.h" |
|
|
|
#include "../userinput.h" |
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
int main() { |
|
|
|
printf("add two numbers:\n"); |
|
|
|
int firstNum = getd("first number: ", NULL, NULL); |
|
|
|
int secondNum = getd("second number: ", NULL, NULL); |
|
|
|
printf("The result is: %d\n", add(firstNum, secondNum)); |
|
|
|
} |