Marksheet

 #include<stdio.h>

#include<stdlib.h>

int main()

{

  int biology, physics, english, chemistry, computer;

  char name[30];


  printf("Enter your name:");

  scanf(" %s", name);


  printf("Enter marks of biology:");

  scanf("%d", &biology);


  printf("Enter marks of physics:");

  scanf("%d", &physics);


  printf("Enter marks of english:");

  scanf("%d", &english);


  printf("Enter marks of chemistry:");

  scanf("%d", &chemistry);


  printf("Enter marks of computer:");

  scanf("%d", &computer);



  printf("===================================================\n");

  printf("MARKSHEET OF STANDARD 12\n");


  printf("---------------------------------------------------\n");

  printf("SUBJECT\t\t\t\t\tMARKS\n");

  printf("---------------------------------------------------\n");

  printf("Biology\t\t\t\t\t %d \n", biology);

  printf("Physics\t\t\t\t\t %d \n", physics);

  printf("English\t\t\t\t\t %d \n", english);

  printf("Chemistry\t\t\t\t %d \n", chemistry);

  printf("Computer\t\t\t\t %d \n", computer);

  printf("---------------------------------------------------\n");

  printf("Total Marks:\t\t%d\n", biology+physics+english+chemistry+computer);

  printf("===================================================\n");


  return 0;

}






Comments

Popular posts from this blog

Simple interest

Compound interest