Question

2. Define variables in main() method: (1) double variable var l and initialize it with the value 1.0567 (2) float variable var2 and initialize it with the value -1.0582 (3)

int variable var3 and initialize it with the value -10000 (4) short variable var4 and initialize it with the value 1118 (5) constant byte variable ONE_HUNDRED and initialize it with value 100

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6