Quantum Supercomputer
Elite
eto patry nito sa magndang IDE/compiler pre, wag lang sa Selpon, kulang sa library nila dun ehEDITED :
Eto Isulat mo sa papel, isave mo sa Notepad ng selpon mo,
import java.util.Scanner;
Class main
{
public static void main(string[] args)
{
double diameter;
double radius;
double square;
double area;
double price;
double result;
Scanner input = new Scanner(You do not have permission to view the full content of this post. Log in or register now.);
System.out.println("Enter Diameter ");
diameter = input.nextDouble();
System.out.println("Enter Price ");
price = input.nextDouble();
radius = diameter * 2;
square = radius*radius;
area = 3.14*square;
result = price/area;
System.out.printIn("Kalahati ng pizza ay " + radius);
System.out.printIn("Price per square inch is " + result);
}
}