printf("Enter Number of student: "); scanf ("%d",&noofstudent);<br />    <br />    <br />    for (int i=1; i<=noofstudent;...
Test2
Test2
Test2
Upcoming SlideShare
Loading in …5
×

Test2

505 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
505
On SlideShare
0
From Embeds
0
Number of Embeds
48
Actions
Shares
0
Downloads
27
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Test2

  1. 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 />

×