First Upload

This commit is contained in:
2022-02-25 15:33:16 +02:00
commit 0c74d10f0d
295 changed files with 74784 additions and 0 deletions

17
4/ex2.c Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
#define EOD -1
void main(void)
{
short num = 0,
count = 0,
sum = 0;
for (count = 0; num != EOD; count++)
{
printf("Enter number (-1 to stop): ");
scanf("%hd", &num);
sum += num;
}
}