III: PROCEDURE: Declare the following variables and print them using printf function: int size = 9; float grade = 1.25; double PI = 3.1416; char gender = 'M'; char message[] = "Hello Everything"; NOTE: Your source code output must be identical to the given sample output. It means you have to strictly follow what are the displayed text labels and casing of characters in the sample output. OUTPUT: size = 9 grade = 1.25 PI = 3.1416 gender = M message = Hello Everything!
Added by Michael C.
Step 1
In C, this is done by including the `stdio.h` library. This library provides the `printf` function, which is used to print output to the console. ```c #include <stdio.h> ``` Show more…
Show all steps
Your feedback will help us improve your experience
Deepak Kumar and 67 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
What is the output of this C code? #include <stdio.h> struct student { int no; char name[20]; }; void main() { struct student s; s.no = 8; printf("hello"); }
Amaad M.
Write a C++ program to input radius of circle from user and find diameter, circumference and area of the given circle using separate functions. (Input and output should be in main()).
Shelayah R.
Write a C++ program that inputs a string, integer, and float type and then outputs the values
Akash M.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD