using System;
using static System.Console;
class Program
{
static void Main()
double a,b,h;
a=double.Parse(ReadLine());
b=double.Parse(ReadLine());
h=double.Parse(ReadLine());
WriteLine("x F(x)");
for(double i=a;i<=b;i=i+h)
WriteLine(i.ToString()+" " +(2*Math.Sin(i)*Math.Sin(i)+1).ToString());
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
using System;
using static System.Console;
class Program
{
static void Main()
{
double a,b,h;
a=double.Parse(ReadLine());
b=double.Parse(ReadLine());
h=double.Parse(ReadLine());
WriteLine("x F(x)");
for(double i=a;i<=b;i=i+h)
WriteLine(i.ToString()+" " +(2*Math.Sin(i)*Math.Sin(i)+1).ToString());
}
}