using System.Collections;
using System.Collections.Generic;
var lst = new List<int>(){
var result = FindNumber(lst);
Console.WriteLine(string.Format("pre: {0} k: {1} next: {2}",item.pre,item.k,item.next));
private List<findNumber> FindNumber(List<int> lstInt){
List<findNumber> arrLst = new List<findNumber>();
findNumber lst= new findNumber{
pre=SoChinhPhuongPre((int)item),
next=SoChinhPhuongNext((int)item)
private int SoChinhPhuongPre(int num){
int sqr = (int)Math.Sqrt(num--);
if(Math.Pow(sqr,2) == num){
private int SoChinhPhuongNext(int num){
int sqr = (int)Math.Sqrt(num);
if(Math.Pow(sqr,2) == num){
public int next{get;set;}