{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

grade.c - main.c grade Created by Joseph Ekpo on...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// // main.c // grade // // Created by Joseph Ekpo on 10/16/16. // Copyright (c) 2016 CS50. All rights reserved. // #include <stdio.h> int main() { int lowest, highest, average; printf("Please enter the student scores.\n"); unsigned int scores[10]; int i, c, sum = 0; for (i=0; i<10; i++) { printf("Student %d:", i); scanf("%d", &scores[i]); } if (scores < 0) { printf("Try again!"); } else { if (scores > 100) { printf("Try again!");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}