text: Program to convert Centimeters to Pixels | Java program to convert centimeter to pixels ; Function to convert centimeters to pixels ; Driver Code
code: import java . io . * ; class GFG { static double Conversion ( double centi ) { double pixels = ( 96 * centi ) / 2.54 ; System . out . println ( pixels ) ; return 0 ; } public static void main ( String args [ ] ) { int centi = 15 ; Conversion ( centi ) ; } }