Computer Science, asked by reebahashmi, 11 months ago

wap to enter total marks of five subjects of a student and print the percentage secured by him​

Answers

Answered by sandu244
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