Question: Write a program that declares variables of the following types, and initializes each variable to some non-zero value: 1. int 2. long int 3. unsigned

Write a program that declares variables of the following types, and initializes each variable to some non-zero value:

1. int

2. long int

3. unsigned int

4. float

5. double

6. long double

7. char

For each variable, display the maximum (positive) non-infinite value that can be represented.

Expressions:

Sum

Write a program that accepts a 5 digit integer value, calculates the sum of the digits, and then displays the product of the value multiplied by the sum of the digits. For example, if the user enters 12345 then the program would display 12345 15 = 185175

Submit it all in Lab3.c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!