Skip to content

Commit ba400a0

Browse files
author
Alex Wintschel
committed
starting with some simple math
1 parent b130801 commit ba400a0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

simple-math.c

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <stdio.h>
2+
3+
int main() {
4+
int a = 3;
5+
float b = 4.5;
6+
double c = 5.25;
7+
float sum;
8+
9+
/* Your code goes here */
10+
sum = a + b + c;
11+
12+
printf("The sum of a, b, and c is %f.", sum);
13+
return 0;
14+
}x

0 commit comments

Comments
 (0)