From fda5883b0c053a2d26e2cc652bd5915aaeffc18f Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Tue, 6 Feb 2024 13:15:56 +0100 Subject: [PATCH] added functions to get the two numbers by the user --- src/ggT/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ggT/main.c b/src/ggT/main.c index a02ee74..f6334b2 100644 --- a/src/ggT/main.c +++ b/src/ggT/main.c @@ -1,5 +1,11 @@ -int main(){ +#include "ggT.h" +#include "../userinput.h" +#include +int main(){ + printf("add two numbers:\n"); + int firstNum = usergetd("first number: ", 0, NULL); + int secondNum = usergetd("second number: ", 0, NULL); return 0; }