Recent Posts

9-latest-250px-course

Write a C program for Calculation of percentage of a Student whose marks of Physics, chemistry, math,English and Hindi is Entered by User

Write a C program for Calculation of percentage of a Student whose marks of Physics, chemistry, math,English and Hindi is Entered by User



Program:-     

#include <stdio.h>

#include <conio.h>

   void main()

{

float P, C, M, E, H, D;

clrscr();

printf("Enter the marks obtained by the student in each subjects");

scanf("%f%f%f%f%f",&P,&C,&M,&E,&H);

D=(P+M+C+H+E)/5;

printf("%f", D);

getch();

}

Output:-

input:-
Enter the value of r and h
P=?
C=?
M=?
E=?
H=?
output:-
...
SHARE

Milan Tomic

Hi. I’m Designer of Blog Magic. I’m CEO/Founder of ThemeXpose. I’m Creative Art Director, Web Designer, UI/UX Designer, Interaction Designer, Industrial Designer, Web Developer, Business Enthusiast, StartUp Enthusiast, Speaker, Writer and Photographer. Inspired to make things looks better.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment