Search for question
Question

3. Write a program and complete the following operations: a. (1) Define a double variable y0, initialize it with value 90 (2) Define a float variable y1, initialize it with

value 0 (3) Assign y1 with value in y0 (4) Display y0 and y1 b. (1) Define an int variable x0, initialize it with value 99 (2) Define a short variable x1, initialize it with value 0 (3) Change x1 so x1 will hold a number which is the half of the number in x0 (4) Display x0 and x1

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7

Fig: 8

Fig: 9