Not Getting output of the program

Feb 20 2014 2:09 AM
namespace WebApplication1.Test
{
public partial class WebForm1 : System.Web.UI.Page
{
int var;
//login dataobject = new login();
protected void btnSubmit_Click(object sender, EventArgs e)
{
var = Convert.ToInt32(txtname.Text);
lblresult.Text = var.ToString();
fabinoci(var);
}
protected static void fabinoci(int var)
{
string name;
int a=0, b=1, c=0;
Console.WriteLine("{0} {1}", a, b);
name = Console.ReadLine();
for (int i = 2; i < var; var++)
{
c=a+b;
Console.WriteLine("{0}", c);
a=b;
b=c;
}
//return var;
}
}
}
 
Not Getting output of the program  

Answers (2)