-
Notifications
You must be signed in to change notification settings - Fork 0
/
Example1.java
53 lines (37 loc) · 1.37 KB
/
Example1.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<<<<<<< HEAD
import java.util.Scanner;
public class Example1 {
public static void main(String[] args)
{
Scanner enter = new Scanner(System.in);
int age;
double height;
double weight;
System.out.println(" How old are?. ");
age = enter.nextInt();
System.out.println(" How tall are you?. ");
height = enter.nextDouble();
System.out.println(" How much do you weigh?. ");
weight = enter.nextDouble();
System.out.println(" So you are " + age + " years old , " + height + " metres tall " + " and weigh " + weight + " Kilograms ");
}
}
=======
import java.util.Scanner;
public class Example1 {
public static void main(String[] args)
{
Scanner enter = new Scanner(System.in);
int age;
double height;
double weight;
System.out.println(" How old are?. ");
age = enter.nextInt();
System.out.println(" How tall are you?. ");
height = enter.nextDouble();
System.out.println(" How much do you weigh?. ");
weight = enter.nextDouble();
System.out.println(" So you are " + age + " years old , " + height + " metres tall " + " and weigh " + weight + " Kilograms ");
}
}
>>>>>>> 9aa901697f8b2b9364b7d06d3ed6430d8ad3b88c