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

What are types of functions?

0 Answers  


Is it better to use malloc() or calloc()?

0 Answers   Aspire, Infogain,


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} what would be the output?

1 Answers   Wipro,


write a program to display the frequency of each element in a given array in c language

1 Answers  


What does calloc stand for?

0 Answers  


Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates

3 Answers  


What are the differences between Structures and Arrays?

0 Answers   TCS,


What is pointer to pointer in c language?

0 Answers  


What is infinite loop?

0 Answers  


what is the differnce between AF_INET and PF_INET?

5 Answers   Systems Plus, Wipro,


What is array of structure in c?

0 Answers  


How can I find out if there are characters available for reading?

0 Answers  


Categories