Question: Question 1: Write a single C statement corresponding to each of the following tasks: a) Declare the variables weight and height as floating-point variables. b)
Question 1: Write a single C statement corresponding to each of the following tasks: a) Declare the variables weight and height as floating-point variables.
b) Declare the variables counter as an integer variable with an initial value of 0
c) Set the value of weight to 180.5
d) Add 1 to the value of counter and store the result in counter
e) Declare the variables weight_loss and new_weight as floating point variables.
f) Read a value for weight_loss using the terminal keyboard.
g) Compute the value of new_weight as the difference of the value of weight and the value of weight_loss.
h) Print the value of new_weight on the terminal screen, starting on a new line.
i) Print the following message on a terminal screen starting on a new line. Congratulations! to you; you are no longer overweight!
j) Declare the variable full_name as a string variable of maximum length of 30. k) Initialize full_name to your own name at compile time. l) Print the content of string variable full_name on
the monitor screen.
: Write a program to print out a birth date in one specific format. For example:-IN C LANGUAGE
Enter the day: 20
Enter the month: 5
Enter the year: 1980
Your birthday is on 20\5\1980
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
