Nico W.

asked • 09/18/20

help please dont know how to do

What is the output of each of the following statements. Use <cr> to show a new line and a __ (underscore) for a blank space. If the statement is INVALID, write ERROR next to it AND CORRECT  IT.  Then show what the OUTPUT would be for the correct statement.  

Assume that:        

Tim = ‘a’;

                 Tony = 10;

                  Terry = 19.3;

Tex = ‘z’;

printf(“ I looked %3c to %3c\n”, Tony,Terry);


printf(“ The final result is %8.3d\n”, Tony % 4);


printf(“ %s  %4.3f  %c\n”, “There are “ , Terry-5, “ of them”);


printf(“ A !=  Tim”);


printf(“ 1 + 1 + 1”, Tony + 1);

                  

1 Expert Answer

By:

Patrick B. answered • 09/20/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.