🔒 Closed Muntikan na kong mawalan nang mata

Status
Not open for further replies.
EDITED :
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);


}


}
eto patry nito sa magndang IDE/compiler pre, wag lang sa Selpon, kulang sa library nila dun eh
 
Status
Not open for further replies.

About this Thread

  • 42
    Replies
  • 810
    Views
  • 7
    Participants
Last reply from:
touchstar

Trending Topics

Online now

Members online
984
Guests online
971
Total visitors
1,955

Forum statistics

Threads
2,275,143
Posts
28,960,960
Members
1,232,639
Latest member
Shishem
Back
Top