Click here for important information about Computing.net.

Problem 1: Write a C program that accepts an integer n, and a double x, then approximate the value of e^x using the Taylor series e^x = 1 + x/1! + x^2/2! + x^3/3! + x^4/4!......

EX.

Enter value n> 3

Enter value x> 1The approximate value of e^1 is 2.6667

Problem 2: Write a C program that accepts an integer n, then prints a triangle with size n

EX.

Enter size n> 3

*

* *

* * *Enter size n>5

*

* *

* * *

* * * *

* * * * *

Show us the program that you have written and explain how it isn't working. If you don't know how to start, this is not the place to get answers to your homework. Talk to your tutor.

Ask Your Question

Weekly Poll

Do you think Intel's new hybrid chips will better compete with Apple/ARM?

Yes (14) | ||

No (14) | ||

I don't know (15) |

Discuss in The Lounge

Poll History