Professional Documents
Culture Documents
Capston 1 Murad 202-35-651
Capston 1 Murad 202-35-651
com/
https://pastebin.com/print/NfdVcUb7 1/7
8/6/2021 Pastebin.com - Printed Paste ID: https://pastebin.com/
28.
29. //setting the condition for printing
results
30. if(phy > 80){
31. printf(" you will get 5000 taka
in phy\n");
32. scholarship += 5000;
33. count++;
34.
35. }
36. if (math > 85){
37. printf(" you will get 7000 taka
in math\n");
38. scholarship += 7000;
39. count++;
40. }
41. if (prog > 90){
42. printf(" you will get 9000 taka
in prog\n");
43. scholarship += 9000;
44. count++;
45. }
46. if (eng > 80){
47. printf("you will get 4000 taka
in eng\n");
48. scholarship += 4000;
49. count++;
50. }
51. printf("\n");
52. if (count < 1){
https://pastebin.com/print/NfdVcUb7 2/7
8/6/2021 Pastebin.com - Printed Paste ID: https://pastebin.com/
https://pastebin.com/print/NfdVcUb7 3/7
8/6/2021 Pastebin.com - Printed Paste ID: https://pastebin.com/
75.
76. //matching the conditions again
77. if(option == 1){
78. printf(" Please Enter Your
PHYSICS Number again : ");
79. scanf("%d", &phy);
80. if(phy > 80){
81. printf(" you will get 5000
taka in phy\n");
82. scholarship += 5000;
83.
84.
85. }
86. }
87. else if(option == 2){
88. printf("Please Enter Your
MATH Number again : ");
89. scanf("%d", &math);
90. if(math > 85){
91. printf(" you will get 7000
taka in MATH\n");
92. scholarship += 7000;
93.
94. }
95. }
96. else if(option == 3){
97. printf("Please Enter Your
PROGRAMMING Number again : ");
98. scanf("%d", &prog);
99. if(prog > 90){
https://pastebin.com/print/NfdVcUb7 4/7
8/6/2021 Pastebin.com - Printed Paste ID: https://pastebin.com/
https://pastebin.com/print/NfdVcUb7 5/7
8/6/2021 Pastebin.com - Printed Paste ID: https://pastebin.com/
https://pastebin.com/print/NfdVcUb7 6/7
8/6/2021 Pastebin.com - Printed Paste ID: https://pastebin.com/
149. }
150. else if(option == 4){
151. printf(" Please Enter Your
ENGLISH Number again : ");
152. scanf("%d", &eng);
153. if(eng > 80){
154. printf(" you will get 4000
taka in eng\n");
155. scholarship += 4000;
156.
157.
158. }
159. }
160. printf("\n");
161. printf(" your total scholarship
: %d",scholarship); //printing the scholarship
162. }
163.
164. else{
165. printf(" You must take 4 subject");
166.
167. }
168.
169.
170.
171.
172. return 0;
173. }
https://pastebin.com/print/NfdVcUb7 7/7