Question: 1. Write a program to define the following variables, assign them values, and print their values on screen: Integer x = 20, Float y
1. Write a program to define the following variables, assign them values, and print their values on screen: Integer x = 20, Float y = 40.45 Double z = 91.51e+5 Char w = A For the integer variable x, you need to print it in decimal notations, octal notations and hexadecimal notation. For the double variable y, you need to print it in double notations and scientific notation. 1. Write a program to define the following variables, assign them values, and print their values on screen: Integer x = 20, Float y = 40.45 Double z = 91.51e+5 Char w = A For the integer variable x, you need to print it in decimal notations, octal notations and hexadecimal notation. For the double variable y, you need to print it in double notations and scientific notation.
Step by Step Solution
3.39 Rating (158 Votes )
There are 3 Steps involved in it
Code for the asked question ... View full answer
Get step-by-step solutions from verified subject matter experts
