15 lines
240 B
C
15 lines
240 B
C
// Averages three (hardcoded) numbers
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
// Scores
|
|
int score1 = 72;
|
|
int score2 = 73;
|
|
int score3 = 33;
|
|
|
|
// Print average
|
|
printf("Average: %f\n", (score1 + score2 + score3) / 3.0);
|
|
}
|