Question 1
Identify the errors in the code below. Rewrite and submit the program without errors:
#include "std.ioh"
   int x=10.5;
   float z=21,000;
   printf('x = %f y = %f/n', y, x);         

Question 2
What would be a safe (and portable) type for a variable that will contain an integer variable that will range from -50,000 to + 123,000?

Question 3
Write a printf statement that outputs the phrase "To be continued" and then advances to the next page (aka performs a form feed).

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

#include "stdio.h"
float x=10.5;
float y=21.000;

printf("x = %f y = %f\n", x, y);
$10.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available C-Family Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats