Repository navigation
Expand file tree
/
Copy pathpractice2.java
More file actions
68 lines (46 loc) · 1.47 KB
/
Copy pathpractice2.java
File metadata and controls
68 lines (46 loc) · 1.47 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import java.util.Scanner;
import javax.naming.NamingException;
//TODO:evalute this
// public class practice2 {
// public static void main(String[]args) {
// float a = 7/4 * 9/2;
// System.out.println(a); //?ans-->4
// }
// }
//TODO:play with char and int
// public class practice2 {
// public static void main(String[]args) {
// char a;
// Scanner s= new Scanner(System.in);
// a=s.next().charAt(0); //! use it to acces char.
// System.out.println((char)(a+8)); //! is you diont write here char explicite type casting then your ans is in int form.
// }
// }
//TODO:comparision and check user enter number or not
// public class practice2 {
// public static void main(String[]args) {
// int n;
// Scanner s= new Scanner(System.in);
// if (s.hasNextInt()){
// n=s.nextInt();
// System.out.println(n>8);
// }
// else
// System.out.println("plz enter int");
// }
// }
//TODO:write expression
public class practice2 {
public static void main(String[]args) {
// int v,u,s1,a;
// Scanner s= new Scanner(System.in);
// v=s.nextInt();
// u=s.nextInt();
// s1=s.nextInt();
// a=s.nextInt();
// float result=(float)((v*v-u*u)/(2*a*s1));
// System.out.println(result);
int a=7*49/7+35/7;
System.out.println(a); //?ans -->54
}
}