+ 1
Hey pals for those who program in c I need a little help in writing a program to grade students
Grading system written in c
8 Respostas
+ 1
let me post it you check on it
+ 1
01#include <stdio.h>
02int main(void)
03{
04 int num;
05 printf("Enter your mark ");
06 scanf("%d",&num);
07 printf(" You entered %d Marks \n", num); // printing outputs
08 if(num >= 80){
09 printf(" You got A grade \n"); // printing outputs
10 }
11 else if ( num >=60){ // Note the space between else & if
12 printf(" You got B grade \n");
13 }
14 else if ( num >=40){
15 printf(" You got C grade \n");
16 }
17 else if ( num < 40){
18 printf(" You Failed in this exam \n");
19 printf(" Better Luck Next Time \n");
20 }
21 return 0;
+ 1
I hadn't written it in a compiler so I wanted someone to check if it was working correctly
0
post your code
0
Do you need help writing it or do you want someone to write it for you?
If it's the former, where exactly is the problem? Feel free to post what you have so far if there are any errors/things that don't work like they should!
0
Seems to work fine what's the problem?
0
And why don't you just compile it? Seems like the easier and faster solution...
0
i didn't have my computer around