0 points

inches to feet


dashboard

Thu Oct 15 2020 18:03:39 GMT+0000 (UTC)

Posted by @Leonidus152 #javascript

import java.util.Scanner;

class U1_L4_Activity_Two {
    public static void main(String[] args) {
      
       /* Write your code here */
       Scanner scan = new Scanner(System.in);
       int inches;
       int feet;
       
       System.out.println("How many inches?");
       inches = scan.nextInt();
       
       feet = inches/12;
       System.out.println(inches + "\" equals " + feet + "\'" );
       
content_copy Copy

type in inches