Negative days completion.

This commit is contained in:
2025-05-11 00:44:19 +09:00
parent 1158462054
commit f12d0bbc49
42 changed files with 377 additions and 79 deletions

17
programs/abs/main.c Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
int main(void) {
int x, y;
printf("Input integer: ");
scanf("%d", &x);
y = x;
if (y < 0)
y = -y;
printf("Absolute value of %d is %d.\n", x, y);
return 0;
}