#include <stdio.h>
const int N = 3; //make scope global; capital denotes constant
int main(void)
{
int scores[3];
scores[0]=72;
scores[1]=73;
scores[2]=33;
printf("average: i%\n", (scores[0]+scores[1]+scores[2])/N );
}
cs50, lec2
No comments:
Post a Comment