-
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathCSAOfCylinder.java
More file actions
14 lines (12 loc) · 447 Bytes
/
CSAOfCylinder.java
File metadata and controls
14 lines (12 loc) · 447 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.dsa;
import java.util.Scanner;
public class CSAOfCylinder {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("Enter radius and height of cylinder");
float radius=input.nextFloat();
float height=input.nextFloat();
float CSA=2*3.14f*radius*height;
System.out.println("Curved surface area of cylinder is "+CSA+" square units");
}
}