Question

Please do 9.11 to 9.17 in C-language. Thanks. It can all be done in the same...

Please do 9.11 to 9.17 in C-language. Thanks.

It can all be done in the same project file

0 0
Add a comment Improve this question Transcribed image text
Answer #1
main.d #include <stdio.h> 3 int main(void) f 4printf(1. -1-In): 6 printf(2-\-In printf(3-1?-In 6 7 printf(4-1-In); 8 printf(5-la-\n); 9 printf(6-b-In 10 printf(7-In-In); 11 printf(8-Ir-In); 12 printf(9-It-In); 13 return

#include <stdio.h>

int main(void) {

printf("1. -\'-\n");

printf("2-\"-\n");

printf("3-\?-\n");

printf("4-\\-\n");

printf("5-\a-\n");

printf("6-\b-\n");

printf("7-\n-\n");

printf("8-\r-\n");

printf("9-\t-\n");

return 0;

}

#include<stdio.h>

int main()

{

char result[1];

int i;

double one = 9876.12345;

for(i=1; i<=9; i++)

{

char format[6] = "%.";

sprintf(result, "%d", i);

strcat(format, result);

strcat(format, "f\n");

printf(format,one);

}

}

/*

OUTPUT

9876.1

9876.12

9876.123

9876.1234

9876.12345

9876.123450

9876.1234500

9876.12345000

9876.123450000

*/

Add a comment
Know the answer?
Add Answer to:
Please do 9.11 to 9.17 in C-language. Thanks. It can all be done in the same...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT