How to write 2 loops in C

January 16, 2011 at 06:15:29
Specs: Windows 7
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> 1

The 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

*
* *
* * *
* * * *
* * * * *


See More: How to write 2 loops in C

Report •


#1
January 16, 2011 at 12:23:10
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.

Report •
Related Solutions


Ask Question