Write a printf or scanf statement for each of the following: Print 200 with and without sign
Added by Jermaine M.
Step 1
Step 1:** To print 200 with a sign, we use the following printf statement: ```c printf("%+d", 200); ``` ** Show more…
Show all steps
Your feedback will help us improve your experience
Sanchit Jain and 99 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
Write two scanf statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a slash, and the year. End with a newline. The program will be tested with inputs 1 2000 and then with inputs 5 1950. Ex: If the input is 1 2000, the output is: 1/2000 Note: The input values come from user input, so be sure to use scanf statements, as in scanf("%d", &birthMonth), to get those input values (and don't assign values directly, as in birthMonth = 1).
Shelayah R.
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