Browse Source

Changed min Numbers to NULL because negative numbers can be handled too

remotes/origin/kgV
cxnnqr 11 months ago
parent
commit
7afe7b4230
  1. 4
      src/kgV/main.c

4
src/kgV/main.c

@ -4,8 +4,8 @@
int main(){ int main(){
printf("add two numbers:\n"); printf("add two numbers:\n");
int firstNum = usergetd("first number: ", 0, NULL);
int secondNum = usergetd("second number: ", 0, NULL);
int firstNum = usergetd("first 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 result is: %d\n", result);

Loading…
Cancel
Save