✍️ Get Writing Help
WhatsApp

Integer variable

1. Write program to count and print the number of negative and positive numbers in a given

set of numbers. Test your program with a suitable set of numbers. Use scanf to read the

numbers. Reading should be terminated when the value 0 is encountered.

2. Write a program to do the following:

(a) Declare x and y as integer variables and z as a short integer variable.

(b) Assign two 6 digit numbers to x and y

(c) Assign the sum of x and y to z

(d) Output the values of x, y and z

Comment on the output.

3. Write a program to read two floating point numbers using a scan f statement, assign their

sum to an integer variable and then output the values of all the three variables.

4. Write a program to illustrate the use of type def declaration in a program.

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102