Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 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