write a program in that if user input 1 then output should be 1 ,user inter 2 then output should be 5 and if user enter 3 then output should be 13 and so on...

Suku76
Posted by Suku76 under C# category on | Points: 40 | Views : 361
Console.WriteLine("Enter your Nomber");
int i = int.Parse(Console.ReadLine());
Console.WriteLine("OutPut of series is :" + ((i * i) + (i - 1) * (i - 1)));
Console.ReadKey();

Comments or Responses

Login to post response