all .3s ease 0}

Monday 8 June 2015

write a program in turbo C to find the percentage of the subjects.

#include<stdio.h>
#include<conio.h>

void main ()
{
 float m1,m2,m3;
 float per;
 float total;
 clrscr();
 printf(" enter the marks of m1");
 scanf("%f", &m1);
 printf(" enter the marks of m2");
 scanf("%f", &m2);
 printf("enter the marks of m3");
 scanf("%f", &m3);
 total= m1+m2+m3;
 printf("the value of marks is %.2f",total);
 per = (total/300)*100;
 printf(" the percentage of each subjects is %.2f:", per);

 getch();
}

No comments:

Post a Comment

Download APPVN Application

Click On The Link Below To Download https://drive.google.com/file/d/0B9_t9aTL848ceUNoQ0lUMnJzTFE/view?usp=drivesdk