Your SlideShare is downloading. ×
Test2
Test2
Test2
Test2
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Test2

432

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
432
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
25
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. printf("Enter Number of student: "); scanf ("%d",&noofstudent);<br /> <br /> <br /> for (int i=1; i<=noofstudent;i++){<br /> <br /> printf("%d student mark: ",i); scanf ("%d",&mark);<br /> <br /> if (mark>=0 && mark <=49)<br /> {<br /> gradeE++; <br /> }<br /> else if (mark>=50 && mark <=59)<br /> {<br /> gradeD++; <br /> }<br /> else if (mark>=60 && mark <=69)<br /> {<br /> gradeC++; <br /> }<br /> <br /> else if (mark>=70 && mark <=79)<br /> {<br /> gradeB++; <br /> }<br /> else if (mark>=80 && mark <=100)<br /> {<br /> gradeA++; <br /> }<br /> <br /> <br /> }<br /> <br /> <br /> printf("______________________________________________n ");<br /> <br /> <br /> printf("nn");<br /> for (int q=0;q<3;q++){<br /> if (q==1)<br /> printf("A: ");<br /> else<br /> printf(" : ");<br /> for (int v=0; v<gradeA; v++){<br /> printf("*");<br /> } <br /> printf("n");<br /> }<br /> printf("nn");<br /> for (int q=0;q<3;q++){<br /> if (q==1)<br /> printf("B: ");<br /> else<br /> printf(" : ");<br /> for (int v=0; v<gradeB; v++){<br /> printf("*");<br /> } <br /> printf("n");<br /> }<br /> printf("nn");<br /> for (int q=0;q<3;q++){<br /> if (q==1)<br /> printf("C: ");<br /> else<br /> printf(" : ");<br /> for (int v=0; v<gradeC; v++){<br /> printf("*");<br /> } <br /> printf("n");<br /> }<br /> <br /> printf("nn");<br /> for (int q=0;q<3;q++){<br /> if (q==1)<br /> printf("D: ");<br /> else<br /> printf(" : ");<br /> for (int v=0; v<gradeD; v++){<br /> printf("*");<br /> } <br /> printf("n");<br /> }<br /> <br /> printf("nn");<br /> for (int q=0;q<3;q++){<br /> if (q==1)<br /> printf("E: ");<br /> else<br /> printf(" : ");<br /> for (int v=0; v<gradeE; v++){<br /> printf("*");<br /> } <br /> printf("n");<br /> }<br /> <br />

×