accept the marks in 5 subjects and calculate the total and percentage in java
MaverickMani:
Oh alright. Have a good day again.
Answers
Answered by
3
class ishika
{
void show(int a,int b, int c, int d,int e)//(a,b,c,d,e are the types of subjects)//
{
int total= (a+b+c+d+e)
double P = ((total/500)*100)
System. out.println ("The total mark is "+total);
System. out.println (" Percentage is "+ P);
}
}
...Hope it will help you....
★★★★★
// line is for you to understand....which shouldn't be written in the program....
{
void show(int a,int b, int c, int d,int e)//(a,b,c,d,e are the types of subjects)//
{
int total= (a+b+c+d+e)
double P = ((total/500)*100)
System. out.println ("The total mark is "+total);
System. out.println (" Percentage is "+ P);
}
}
...Hope it will help you....
★★★★★
// line is for you to understand....which shouldn't be written in the program....
Similar questions