Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How the C program can be compiled?

11 Answers   HP,


what is the output of the program?? #include<stdio.h> main ( ) { int a=010,sum=0,tracker: for(tracker=0;tracker<=a;tracker++) sum+=tracker; printf(ā€œ %d\nā€,sum); } what is the difference between a=10 and a=010??

3 Answers   Oracle,


How to write a multi-statement macro?

0 Answers  


Why is #define used?

0 Answers  


Explain function pointer with exapmles.

2 Answers  


There is a 100-story building and you are given two eggs. The eggs (and the building) have an interesting property that if you throw the egg from a floor number less than X, it will not break. And it will always brake if the floor number is equal or greater than X. Assuming that you can reuse the eggs which didn't broke; you got to find X in a minimal number of throws. Give an algorithm to find X in minimal number of throws.

5 Answers   Yahoo,


What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }

7 Answers  


How to draw the flowchart for structure programs?

0 Answers  


how to write a cprogram yo get output in the form * *** ***** ******* ********* ******* ***** *** *

3 Answers  


what is difference between overriding and overloading?

1 Answers  


write a c code "if you give a any decimal number then print that number in english alphabet"? ex: i/p: 552 o/p: five hundred fifty two ...

1 Answers   Philips,


write a C code To reverse a linked list

2 Answers   Motorola, Wipro,


Categories