Saved Bookmarks
| 1. |
Write a Program in C to input marks in five subjects and display the following output:Math = 90 English = 70 Science = 69 Social Studies = 77 Sanskrit = 99 |
|
Answer» Answer: #include #include void main() { int a,b,c,d,e,average; CLRSCR(); printf(“Enter MARKS of subject 1:”); scanf(“%d”,&a); printf(“Enter marks of subject 2:”); scanf(“%d”,&b); printf(“Enter marks of subject 3:”); scanf(“%d”,&c); printf(“Enter marks of subject 4:”); scanf(“%d”,&d); printf(“Enter marks of subject 5:”); scanf(“%d”,&e); average=(a+b+c+d+e)/5; printf(“nAverage=%d”,average); getch(); } Explanation: hope that HELPS you |
|