#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();
}
Monday, 8 June 2015
write a program in turbo C to find the percentage of the subjects.
To print a sentence in turbo C
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf(" My Name Is KHAN");
getch();
}
output result will be : My Name Is KHAN
#include<conio.h>
void main()
{
clrscr();
printf(" My Name Is KHAN");
getch();
}
output result will be : My Name Is KHAN
Subscribe to:
Comments (Atom)
Download APPVN Application
Click On The Link Below To Download https://drive.google.com/file/d/0B9_t9aTL848ceUNoQ0lUMnJzTFE/view?usp=drivesdk
-
#include <stdio.h> int main ( ) { int m , n , c , d , matrix [ 10 ] [ 10 ] , transpose [ 10 ] [ 10 ] ; printf ( ...
-
Click On The Link Below To Download https://drive.google.com/file/d/0B9_t9aTL848ceUNoQ0lUMnJzTFE/view?usp=drivesdk