6.4.. Izračunati vrijednosti prema izrazima:
  a = x * y
  b = x + y
  c = b / x

Listing programa:

package zadatak;
import java.util.Scanner;
public class P06411093 {
    public static void main(String[] args)	{
    Scanner input = new Scanner (System.in);
        Scanner input = new Scanner(System.in);
 		System.out.println("Unesite vrijednosti X ,Y i C ! ");
 		System.out.println("Unesite vrijednost X : ");
 		double x =input.nextDouble(); 
 		
 		System.out.println("Unesite vrijednost Y : ");
		double y =input.nextDouble();
		double a = x * y;
		double b  = x + y ;
		double c  = b / x ;
		System.out.println("Vrijednost izraza A =  : " + a);
		
		System.out.println("Vrijednost izraza B =   : " + b);
		
		System.out.println("Vrijednost izraza C =   : " + c);
	}
}

Ispis na ekranu:

Index