Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace InputExitZad12
- {
- class InputZad11
- {
- static void Main(string[] args)
- {
- decimal a = 0;
- decimal a1 = 1;
- decimal a2 = a + a1;
- Console.WriteLine("{0,-5} | {1,30}",a1,a2);
- for (int i = 2; i <= 100; i++)
- {
- a = a1;
- a1 = a2;
- a2 = a + a1;
- Console.WriteLine("{0,-5} | {1,30}",i,a2);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement