write a program that prompts the user to enter the weight of a person in kg and output the equivalent weight in pounds ( 1kg = 22 pounds )
Answers
Answered by
1
Answer:
import java.util.*;
public class Weight
{
public static void main(String args[ ])
{
Scanner in=new Scanner(System.in);
int weight,pound=0;
System.out.println("Enter the weight in kg");
weight=in.nextInt();
pound=22*weight;
System.out.println("Weight in pounds="+pound);
}
}
Similar questions