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

Can the “if” function be used in comparing strings?

0 Answers  


What is the meaning When we write "#include" what is # and what does include does there???

22 Answers   HCL, Wipro,


A C E G H +B D F A I ------------ E F G H D

1 Answers   Infosys,


Is an array parameter is always "by reference" ?

1 Answers  


Is main is user defined function?

0 Answers  






What is the use of ?

0 Answers  


write a function for strtok()??

2 Answers   Verifone,


Write a program to print factorial of given number without using recursion?

0 Answers  


writ a program to compare using strcmp VIVA and viva with its output.

0 Answers  


1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file

1 Answers  


what is the basis for selection of arrays or pointers as data structure in a program

0 Answers   TCS,


c program to arrange digits in a no in ascending and descending order

1 Answers  


Categories