Добавить
Уведомления

#3 Java use to find radius and area program

package sample.d; import java.util.Scanner; public class nothing { public static void main(String[] args) { // TODO Auto-generated method stub float r,area; System.out.print("enter the circle data"); Scanner in= new Scanner(System.in); r= in.nextFloat(); area= (float)(22.0/7) *r*r; System.out.printf("enter the circle data %.2f or %.2f",r,area); } }

12+
17 просмотров
2 года назад
12+
17 просмотров
2 года назад

package sample.d; import java.util.Scanner; public class nothing { public static void main(String[] args) { // TODO Auto-generated method stub float r,area; System.out.print("enter the circle data"); Scanner in= new Scanner(System.in); r= in.nextFloat(); area= (float)(22.0/7) *r*r; System.out.printf("enter the circle data %.2f or %.2f",r,area); } }

, чтобы оставлять комментарии