Start with int int main ()
and end with return 0;
Users like output, if they don't get output, they say your program is busted.
Of course I don't have a students.txt file but when I ran your code, I got 0 output.
so how about adding some output, if I don't have a file, and show a example of students.txt :) so I have something to look at when I do have a file.
1 2 3 4 5 6 7 8 9 10 11 12
|
#include "genlib.h"
#include "simpio.h"
#include <stdio.h>
if (Test Average>=93)
printf ("A %.2f\n",Test Average);
else if ((Test Average>89) && (Test Average <93))
printf ("A- %.2f\n",Test Average);
else if ((Test Average>84) && (Test Average <90))
printf ("B+ %.2f\n",Test Average);
//so on...
|
Use if/else if/else statements.
Last edited on