wap to enter total marks of five subjects of a student and print the percentage secured by him
Answers
Answered by
1
Answer:
import java.util.×;
class Q1
{
void main(string args [ ] }
{
Scanner Sc =new Sanner ( System. in() ) ;
S. O. P ( "Enter marks ") ;
double sum, percent;
for ( int I = 1; i<=5;I++)
{
double mark=Sc.nextDouble() ;
sum=sum+mark:
}
percent=sum/500×100;
S. O. P ( percent +"%") ;
}
}
Similar questions