-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPractice_Set_2.java
More file actions
41 lines (31 loc) · 1016 Bytes
/
Practice_Set_2.java
File metadata and controls
41 lines (31 loc) · 1016 Bytes
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
package com.company;
import java.util.Scanner;
public class Practice_Set_2 {
public static void main(String[] args){
//Question 1:
/* float a = 7/4.0f * 9/2.0f;
System.out.println(a); */
//Question 2:
/* Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.println(a>8);*/
//Question 3:
Scanner sc = new Scanner(System.in);
/* System.out.print("Tell your V : ");
float V = sc.nextFloat();
System.out.println();
System.out.print("Tell your U : ");
float U = sc.nextFloat();
System.out.println();
System.out.print("Tell your A : ");
float A = sc.nextFloat();
System.out.println();
System.out.print("Tell your S : ");
float S = sc.nextFloat();
System.out.println();
float answer = ((V*V)-(U*U))/(2*(A*S));
System.out.println(answer);*/
//Question 4:
System.out.println(7*49/7+35/7);
}
}