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;
- using System.Threading.Tasks;
- namespace ConsoleApp4
- {
- class Program
- {
- static void Main(string[] args)
- {
- Output();
- }
- static void Output()
- {
- double degrees, Fx;
- for (int i = 0; i <= 180; i += 10)
- {
- degrees = Math.Sin(i * Math.PI / 180.0) + Math.Cos(i * Math.PI / 180.0);
- Fx = Math.Sin(i) + Math.Cos(i);
- Console.WriteLine("| {0,4:F1} | {1,5:F2} | {2,12:F4} |", degrees, Fx, Fx);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement