- #1
TheDoorsOfMe
- 46
- 0
Homework Statement
I want to create a gpa calculator. This isn't for school I am just trying to learn some programming on my own and came up with this project.
I want the output to be something like this:
how many classes have you taken?
grade for class 1:
number of credits for class 1:
and so on...
What do I need to do to make the number of classses entered come up?
Homework Equations
The Attempt at a Solution
#include <stdio.h>
#include <stdlib.h>
#define a 4
#define b 3
#define c 2
#define d 1
#define f 0
int main(void)
{
int classes;
int credits;
printf("How Many Classes did you take? ");
scanf("%d", &classes);
printf("How Many credits was class 1: ");
scanf("%d", &credits);
return 0;
}