1.

Wap to input mark of 3 subject and find the total parentage​

Answer»

<P>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);

}

}



Discussion

No Comment Found