SlideShare ist ein Scribd-Unternehmen logo
1 von 4
printf(quot;
Enter Number of student: quot;
); scanf (quot;
%dquot;
,&noofstudent);<br />    <br />    <br />    for (int i=1; i<=noofstudent;i++){<br />        <br />          printf(quot;
%d student mark:  quot;
,i); scanf (quot;
%dquot;
,&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(quot;
______________________________________________ quot;
);<br />    <br />    <br />       printf(quot;
quot;
);<br />    for (int q=0;q<3;q++){<br />             if (q==1)<br />             printf(quot;
A: quot;
);<br />             else<br />             printf(quot;
 : quot;
);<br />             for (int v=0; v<gradeA; v++){<br />             printf(quot;
*quot;
);<br />            }  <br />          printf(quot;
quot;
);<br />         }<br />       printf(quot;
quot;
);<br />        for (int q=0;q<3;q++){<br />             if (q==1)<br />             printf(quot;
B: quot;
);<br />             else<br />             printf(quot;
 : quot;
);<br />             for (int v=0; v<gradeB; v++){<br />             printf(quot;
*quot;
);<br />            }  <br />          printf(quot;
quot;
);<br />         }<br />           printf(quot;
quot;
);<br />        for (int q=0;q<3;q++){<br />             if (q==1)<br />             printf(quot;
C: quot;
);<br />             else<br />             printf(quot;
 : quot;
);<br />             for (int v=0; v<gradeC; v++){<br />             printf(quot;
*quot;
);<br />            }  <br />          printf(quot;
quot;
);<br />         }<br />        <br />           printf(quot;
quot;
);<br />        for (int q=0;q<3;q++){<br />             if (q==1)<br />             printf(quot;
D: quot;
);<br />             else<br />             printf(quot;
 : quot;
);<br />             for (int v=0; v<gradeD; v++){<br />             printf(quot;
*quot;
);<br />            }  <br />          printf(quot;
quot;
);<br />         }<br />    <br />          printf(quot;
quot;
);<br />        for (int q=0;q<3;q++){<br />             if (q==1)<br />             printf(quot;
E: quot;
);<br />             else<br />             printf(quot;
 : quot;
);<br />             for (int v=0; v<gradeE; v++){<br />             printf(quot;
*quot;
);<br />            }  <br />          printf(quot;
quot;
);<br />         }<br />    <br />
Test2
Test2
Test2

Weitere ähnliche Inhalte

Andere mochten auch (10)

Ch05
Ch05Ch05
Ch05
 
Mon itinéraire
Mon itinéraireMon itinéraire
Mon itinéraire
 
Ch03
Ch03Ch03
Ch03
 
Ch04
Ch04Ch04
Ch04
 
Ch09
Ch09Ch09
Ch09
 
Ch06
Ch06Ch06
Ch06
 
7. kirchhoff s_rules
7. kirchhoff s_rules7. kirchhoff s_rules
7. kirchhoff s_rules
 
11 advance inheritance_concepts
11 advance inheritance_concepts11 advance inheritance_concepts
11 advance inheritance_concepts
 
Ch02
Ch02Ch02
Ch02
 
Ch08
Ch08Ch08
Ch08
 

Ähnlich wie Test2

Bti1022 lab sheet 8
Bti1022 lab sheet 8Bti1022 lab sheet 8
Bti1022 lab sheet 8alish sha
 
Program for pyramid
Program for pyramidProgram for pyramid
Program for pyramidnayakq
 
6 c control statements branching &amp; jumping
6 c control statements branching &amp; jumping6 c control statements branching &amp; jumping
6 c control statements branching &amp; jumpingMomenMostafa
 
Chap7_b Control Statement Looping (3).pptx
Chap7_b Control Statement Looping (3).pptxChap7_b Control Statement Looping (3).pptx
Chap7_b Control Statement Looping (3).pptxFakhriyArif
 
Cpd lecture im 207
Cpd lecture im 207Cpd lecture im 207
Cpd lecture im 207Syed Tanveer
 
Dti2143 lab sheet 8
Dti2143 lab sheet 8Dti2143 lab sheet 8
Dti2143 lab sheet 8alish sha
 
Network lap pgms 7th semester
Network lap pgms 7th semesterNetwork lap pgms 7th semester
Network lap pgms 7th semesterDOSONKA Group
 
Introduction to Programming @ NTHUEEECamp 2015
Introduction to Programming @ NTHUEEECamp 2015Introduction to Programming @ NTHUEEECamp 2015
Introduction to Programming @ NTHUEEECamp 2015淳佑 楊
 
Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2alish sha
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem SolvingSreedhar Chowdam
 
Dti2143 lab sheet 7
Dti2143 lab sheet 7Dti2143 lab sheet 7
Dti2143 lab sheet 7alish sha
 
JSUG - Scala Lightning Talk by Michael Greifeneder
JSUG - Scala Lightning Talk by Michael GreifenederJSUG - Scala Lightning Talk by Michael Greifeneder
JSUG - Scala Lightning Talk by Michael GreifenederChristoph Pickl
 
Java căn bản - Chapter5
Java căn bản - Chapter5Java căn bản - Chapter5
Java căn bản - Chapter5Vince Vo
 

Ähnlich wie Test2 (20)

Bti1022 lab sheet 8
Bti1022 lab sheet 8Bti1022 lab sheet 8
Bti1022 lab sheet 8
 
Program for pyramid
Program for pyramidProgram for pyramid
Program for pyramid
 
6 c control statements branching &amp; jumping
6 c control statements branching &amp; jumping6 c control statements branching &amp; jumping
6 c control statements branching &amp; jumping
 
Chap7_b Control Statement Looping (3).pptx
Chap7_b Control Statement Looping (3).pptxChap7_b Control Statement Looping (3).pptx
Chap7_b Control Statement Looping (3).pptx
 
Cpd lecture im 207
Cpd lecture im 207Cpd lecture im 207
Cpd lecture im 207
 
VTU Data Structures Lab Manual
VTU Data Structures Lab ManualVTU Data Structures Lab Manual
VTU Data Structures Lab Manual
 
06 1 조건문
06 1 조건문06 1 조건문
06 1 조건문
 
Dti2143 lab sheet 8
Dti2143 lab sheet 8Dti2143 lab sheet 8
Dti2143 lab sheet 8
 
Network lap pgms 7th semester
Network lap pgms 7th semesterNetwork lap pgms 7th semester
Network lap pgms 7th semester
 
C lab manaual
C lab manaualC lab manaual
C lab manaual
 
Introduction to Programming @ NTHUEEECamp 2015
Introduction to Programming @ NTHUEEECamp 2015Introduction to Programming @ NTHUEEECamp 2015
Introduction to Programming @ NTHUEEECamp 2015
 
ADA FILE
ADA FILEADA FILE
ADA FILE
 
Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem Solving
 
Dvst
DvstDvst
Dvst
 
pointers 1
pointers 1pointers 1
pointers 1
 
Dti2143 lab sheet 7
Dti2143 lab sheet 7Dti2143 lab sheet 7
Dti2143 lab sheet 7
 
Oscon 2010 Specs talk
Oscon 2010 Specs talkOscon 2010 Specs talk
Oscon 2010 Specs talk
 
JSUG - Scala Lightning Talk by Michael Greifeneder
JSUG - Scala Lightning Talk by Michael GreifenederJSUG - Scala Lightning Talk by Michael Greifeneder
JSUG - Scala Lightning Talk by Michael Greifeneder
 
Java căn bản - Chapter5
Java căn bản - Chapter5Java căn bản - Chapter5
Java căn bản - Chapter5
 

Mehr von alish sha

T22016 – how to answer with ubs 9
T22016 – how to answer with ubs 9T22016 – how to answer with ubs 9
T22016 – how to answer with ubs 9alish sha
 
July 2014 theory exam (theory)
July 2014 theory exam (theory)July 2014 theory exam (theory)
July 2014 theory exam (theory)alish sha
 
Accounting basic equation
Accounting basic equation Accounting basic equation
Accounting basic equation alish sha
 
It 302 computerized accounting (week 2) - sharifah
It 302   computerized accounting (week 2) - sharifahIt 302   computerized accounting (week 2) - sharifah
It 302 computerized accounting (week 2) - sharifahalish sha
 
It 302 computerized accounting (week 1) - sharifah
It 302   computerized accounting (week 1) - sharifahIt 302   computerized accounting (week 1) - sharifah
It 302 computerized accounting (week 1) - sharifahalish sha
 
What are the causes of conflicts (Bahasa Malaysia)
What are the causes of conflicts (Bahasa Malaysia)What are the causes of conflicts (Bahasa Malaysia)
What are the causes of conflicts (Bahasa Malaysia)alish sha
 
Lab 9 sem ii_12_13
Lab 9 sem ii_12_13Lab 9 sem ii_12_13
Lab 9 sem ii_12_13alish sha
 
Lab 10 sem ii_12_13
Lab 10 sem ii_12_13Lab 10 sem ii_12_13
Lab 10 sem ii_12_13alish sha
 
Lab 5 2012/2012
Lab 5 2012/2012Lab 5 2012/2012
Lab 5 2012/2012alish sha
 
Purpose elaborate
Purpose elaboratePurpose elaborate
Purpose elaboratealish sha
 
Test 1 alish schema 1
Test 1 alish schema 1Test 1 alish schema 1
Test 1 alish schema 1alish sha
 
Lab 6 sem ii_11_12
Lab 6 sem ii_11_12Lab 6 sem ii_11_12
Lab 6 sem ii_11_12alish sha
 
Test 1 skema q&a
Test 1 skema q&aTest 1 skema q&a
Test 1 skema q&aalish sha
 
Test 1 skema q&a
Test 1 skema q&aTest 1 skema q&a
Test 1 skema q&aalish sha
 
Final project
Final projectFinal project
Final projectalish sha
 
Final project
Final projectFinal project
Final projectalish sha
 
Attn list test
Attn list testAttn list test
Attn list testalish sha
 
Carry markdam31303
Carry markdam31303Carry markdam31303
Carry markdam31303alish sha
 

Mehr von alish sha (20)

T22016 – how to answer with ubs 9
T22016 – how to answer with ubs 9T22016 – how to answer with ubs 9
T22016 – how to answer with ubs 9
 
July 2014 theory exam (theory)
July 2014 theory exam (theory)July 2014 theory exam (theory)
July 2014 theory exam (theory)
 
Accounting basic equation
Accounting basic equation Accounting basic equation
Accounting basic equation
 
It 302 computerized accounting (week 2) - sharifah
It 302   computerized accounting (week 2) - sharifahIt 302   computerized accounting (week 2) - sharifah
It 302 computerized accounting (week 2) - sharifah
 
It 302 computerized accounting (week 1) - sharifah
It 302   computerized accounting (week 1) - sharifahIt 302   computerized accounting (week 1) - sharifah
It 302 computerized accounting (week 1) - sharifah
 
What are the causes of conflicts (Bahasa Malaysia)
What are the causes of conflicts (Bahasa Malaysia)What are the causes of conflicts (Bahasa Malaysia)
What are the causes of conflicts (Bahasa Malaysia)
 
Lab 9 sem ii_12_13
Lab 9 sem ii_12_13Lab 9 sem ii_12_13
Lab 9 sem ii_12_13
 
Lab 10 sem ii_12_13
Lab 10 sem ii_12_13Lab 10 sem ii_12_13
Lab 10 sem ii_12_13
 
Lab 6
Lab 6Lab 6
Lab 6
 
Lab 5 2012/2012
Lab 5 2012/2012Lab 5 2012/2012
Lab 5 2012/2012
 
Purpose elaborate
Purpose elaboratePurpose elaborate
Purpose elaborate
 
Lab sheet 1
Lab sheet 1Lab sheet 1
Lab sheet 1
 
Test 1 alish schema 1
Test 1 alish schema 1Test 1 alish schema 1
Test 1 alish schema 1
 
Lab 6 sem ii_11_12
Lab 6 sem ii_11_12Lab 6 sem ii_11_12
Lab 6 sem ii_11_12
 
Test 1 skema q&a
Test 1 skema q&aTest 1 skema q&a
Test 1 skema q&a
 
Test 1 skema q&a
Test 1 skema q&aTest 1 skema q&a
Test 1 skema q&a
 
Final project
Final projectFinal project
Final project
 
Final project
Final projectFinal project
Final project
 
Attn list test
Attn list testAttn list test
Attn list test
 
Carry markdam31303
Carry markdam31303Carry markdam31303
Carry markdam31303
 

Test2

  • 1. printf(quot; Enter Number of student: quot; ); scanf (quot; %dquot; ,&noofstudent);<br /> <br /> <br /> for (int i=1; i<=noofstudent;i++){<br /> <br /> printf(quot; %d student mark: quot; ,i); scanf (quot; %dquot; ,&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(quot; ______________________________________________ quot; );<br /> <br /> <br /> printf(quot; quot; );<br /> for (int q=0;q<3;q++){<br /> if (q==1)<br /> printf(quot; A: quot; );<br /> else<br /> printf(quot; : quot; );<br /> for (int v=0; v<gradeA; v++){<br /> printf(quot; *quot; );<br /> } <br /> printf(quot; quot; );<br /> }<br /> printf(quot; quot; );<br /> for (int q=0;q<3;q++){<br /> if (q==1)<br /> printf(quot; B: quot; );<br /> else<br /> printf(quot; : quot; );<br /> for (int v=0; v<gradeB; v++){<br /> printf(quot; *quot; );<br /> } <br /> printf(quot; quot; );<br /> }<br /> printf(quot; quot; );<br /> for (int q=0;q<3;q++){<br /> if (q==1)<br /> printf(quot; C: quot; );<br /> else<br /> printf(quot; : quot; );<br /> for (int v=0; v<gradeC; v++){<br /> printf(quot; *quot; );<br /> } <br /> printf(quot; quot; );<br /> }<br /> <br /> printf(quot; quot; );<br /> for (int q=0;q<3;q++){<br /> if (q==1)<br /> printf(quot; D: quot; );<br /> else<br /> printf(quot; : quot; );<br /> for (int v=0; v<gradeD; v++){<br /> printf(quot; *quot; );<br /> } <br /> printf(quot; quot; );<br /> }<br /> <br /> printf(quot; quot; );<br /> for (int q=0;q<3;q++){<br /> if (q==1)<br /> printf(quot; E: quot; );<br /> else<br /> printf(quot; : quot; );<br /> for (int v=0; v<gradeE; v++){<br /> printf(quot; *quot; );<br /> } <br /> printf(quot; quot; );<br /> }<br /> <br />