WAP to accept rollno,course name & marks of a student &
display grade if total marks is above 200?

Answers were Sorted based on User's Feedback



WAP to accept rollno,course name & marks of a student & display grade if total marks is ab..

Answer / don

Frnds plss tell me the answer

Is This Answer Correct ?    17 Yes 6 No

WAP to accept rollno,course name & marks of a student & display grade if total marks is ab..

Answer / rohit

#include<stdio.h>
#include<conio.h>
struct mix
{
int rollno,m1,m2,m3,total;
char cn;
};
void main()
{
mix s1;
printf("Enter roll no:");
scanf("%d",&s1.rollno);
printf("Enter course name:");
scanf("%s",s1.cn);
printf("Enter marks of 3 subjects out of 150:");
scanf("%d%d%d",&s1.m1,&s1.m2,&s1.m3);
s1.total=s1.m1+s1.m2+s1.m3;
if(s1.total>200)
{
printf("A grade");
}
getch();
}

Is This Answer Correct ?    23 Yes 15 No

WAP to accept rollno,course name & marks of a student & display grade if total marks is ab..

Answer / kundan

wap a program find out bawchera dital

Is This Answer Correct ?    4 Yes 6 No

WAP to accept rollno,course name & marks of a student & display grade if total marks is ab..

Answer / kundan kumar

this question is tru

Is This Answer Correct ?    4 Yes 6 No

Post New Answer

More C Interview Questions

two variables are added answer is stored on not for third variable how it is possible?

3 Answers  


What is build process in c?

0 Answers  


Explain the difference between malloc() and calloc() function?

0 Answers  


Explain how does flowchart help in writing a program?

0 Answers  


how to calculate the time complexity of a given algorithm? pls give exaples..mainly for the coplexities such as O(log n),O(n log n)...

1 Answers   Infosys,






How is a pointer variable declared?

0 Answers  


Explain about the functions strcat() and strcmp()?

0 Answers  


how to make program without <> in library.

1 Answers   ADITI,


how to find that no is int or float?

5 Answers  


Can true be a variable name in c?

0 Answers  


What is the difference between class and object in c?

0 Answers  


how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......

10 Answers   Infosys,


Categories