#include <stdio.h>
#include <stdlib.h>
int main()
{
    float grade1 = 0.0;
    float grade2 = 0.0;
    float grade3 = 0.0;
    printf("Enter your three test grades in decimal form: \n");
    scanf(" %f", grade1);
    scanf(" %f", grade2);
    scanf(" %f", grade3);
    float avg = (grade1 + grade2 + grade3) / 3;
    printf("Average: %.2f \n", avg);
    system("pause");
    return 0;
}
I am using a tutorial on the new boston YT channel and this code does not work on my compiler while tutorial code does work. I have Visual Studio Community 2015.
 
     
     
    