Dot Net Framework
A)
Write a program in C# to create a function to display the n terms of Fibonacci
sequence.
Answer :
namespace WinFormsApp22
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int a, b=0, c=1, d;
a = Convert.ToInt32(textBox1.Text);
listBox1.Items.Add(b);
listBox1.Items.Add(c);
for (int i = 0; i < a; i++)
{
d = b + c;
listBox1.Items.Add(d);
b = c;
c = d;
}
}
}
}
Output :
B)
Create the application in ASP.Net that accepts name, password ,age , email id,
and
user
id. All the information entry is compulsory. Password should be reconfirmed.
Age
should
be within 21 to 30. Email id should be valid. User id should have at least a
capital
letter and digit as well as length should be between 7 and 20 characters.
Answer :
Output :
No comments:
Post a Comment