Programming C's Question
Programming C's solve:
1.If the mark obtained by a student in 5 different subjects are input through the keyword.Find out the aggregate mark and percentage mark obtained by the student (assume that man mark in each paper is 100)
Ans:-/* program to find out aggregate mark and percentage mark */
#include < std io .h >
#include < con in .h >
void main ( )
{
int a,b,c,d,e, sum;
float per;
print f ("enter the find number \n");
scan f ("%d%d%d," &a,&b,&c,&d,&e; sum, per);
getch ( );
}
1.If the mark obtained by a student in 5 different subjects are input through the keyword.Find out the aggregate mark and percentage mark obtained by the student (assume that man mark in each paper is 100)
Ans:-/* program to find out aggregate mark and percentage mark */
#include < std io .h >
#include < con in .h >
void main ( )
{
int a,b,c,d,e, sum;
float per;
print f ("enter the find number \n");
scan f ("%d%d%d," &a,&b,&c,&d,&e; sum, per);
getch ( );
}
No comments