Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Lab
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- int x = 33, i = 1, f = 1, x1 = 0;
- double sum = 0, e = 2.72;
- x1 = x;
- while (x/f > 0.0001)
- {
- Console.Write(" sum ");
- Console.WriteLine(" func ");
- sum += x / f;
- Console.Write(sum);
- Console.Write(" ");
- Console.WriteLine(e);
- x *= x1;
- i++;
- f *= i;
- e *= e;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement