Wap to input mark of 3 subject and find the total parentage
Answers
Answered by
1
Answer:
import java.util.*;
class A
{ void read()
{
Scanner sc=new Scanner ( system.in);
System.out.println(" enter marks of 3 subjects") ;
int a= sc.nextInt();
int b= sc.nextInt();
int c= sc.nextInt();
int p=( a+b+c/3)*100;
System.out.println( " percentage of" +a+","+ b+","+c+" is" + p);
}
}
Similar questions