CBSE BOARD X, asked by sanchita2666, 1 year ago

hi guys answer this question this is urgent


write a program to find the surface area of aq cube= to6asquare​

Answers

Answered by ayaan12396
1

// to find the surface area of cube

import java.util.*;

public class Surface_Area

{

public static void main()

{

Scanner in = new Scanner(System.in);

System.out.println(" Enter the side of a cube");

int side= in.nextInt();

double surfarea= 6*side*side;

System.out.println(The surface area of square="+ surfarea);

}

}

Answered by akshatdeora5
1

Answer:

area of a cube is = a^2

surface area of cube = 6a^2

area of 6 squares = 6*a^2

                              =6a^2

Hence Proved

Explanation:

Similar questions