Computer Science, asked by parthana08, 2 months ago

3) Write a program in C to input marks

in five subjects and display the

following output:

Maths=90, English=70, Science=69,

Social Studies =77, Sanskrit=99​

Answers

Answered by Surajrai8484
0

Answer:

#include<stdio.h>

void main()

{

int m,e,s,ss,sa;

printf("Enter the subject marks as follows\n");

printf("Maths:");

scanf("%d",&m);

printf("English:");

scanf("%d", &e) ;

printf("Science:");

scanf("%d",&s);

printf("Social studies:");

scanf("%d", &ss) ;

printf("Sanskrit:");

scanf("%d",&sa);

printf("The marks obtained in different subjects are:\n");

printf("Maths: %d\n",m);

printf("English:%d\n",e);

printf("Science:%d\n",s);

printf("Social studies:%d\n",ss);

printf("Sanskrit:%d\n",sa);

}

Similar questions