Initial commit

This commit is contained in:
2021-10-01 20:24:05 +02:00
commit 860c025165
194 changed files with 4846 additions and 0 deletions

21
kapitel6/elseif-ex1.c Normal file
View File

@@ -0,0 +1,21 @@
#include <stdio.h>
int main(void)
{
int a = 5;
int b = 10;
int c = 15;
if (a > b)
printf("%d är större än %d\n", a, b);
else if (a > c)
printf("%d är större än %d\n", a, c);
else if (a == b)
printf("%d är lika stor som %d\n", a, b);
else
printf("Inget av de ovanstående villkoren var sanna\n");
printf("Här fortsätter koden som vanligt\n");
return 0;
}