please any query post questions to me i response u soon !! i hope u may like my tutorials !!
Monday, 24 June 2013
Wednesday, 12 June 2013
Monday, 10 June 2013
Thanks To All
Hi Friends Thank You For seeing my Blog spot programs kindly follow me at twitter for any suggestions
website www.twitter.com/@umarjavedmalik
website www.twitter.com/@umarjavedmalik
Kindly write programs Yourself , if You Copy paste my code its Against the Copyrights Laws and plagiarism factorz!!
programmingisbest.blogspot.com
is another of mine blog..
programmingisbest.blogspot.com
is another of mine blog..
Regards
Umar Javed Malik
umarjaved01@gmail.com
C# .Net Bubble Sort Program Application
public partial class Form1 : Form
{
int[] a = new int[4];
int result;
int temp, max;
public Form1()
{
InitializeComponent();
groupBox2.Visible = false;
this.MaximizeBox = false;
this.MinimizeBox = false;
}
private void operationbtn_Click(object sender, EventArgs e)
{
a[0]=Convert.ToInt16(inputtxt1.Text);
a[1] = Convert.ToInt16(inputtxt2.Text);
a[2] = Convert.ToInt16(inputtxt3.Text);
a[3] = Convert.ToInt16(inputtxt4.Text);
max=4;
for (int u = 0; u < max; u++)
{
for (int i = 0; i < max - 1; i++) //Loop for the array for the sorting
{
if (a[i] > a[i + 1])
{
temp = a[i];
a[i] = a[i + 1];
a[i + 1] = temp;
}
}
}
groupBox2.Visible = true;
Outputtxt1.Text = Convert.ToString(a[0]);
Outputtxt2.Text = Convert.ToString(a[1]);
Outputtxt3.Text = Convert.ToString(a[2]);
Outputtxt4.Text = Convert.ToString(a[3]);
}
}
{
int[] a = new int[4];
int result;
int temp, max;
public Form1()
{
InitializeComponent();
groupBox2.Visible = false;
this.MaximizeBox = false;
this.MinimizeBox = false;
}
private void operationbtn_Click(object sender, EventArgs e)
{
a[0]=Convert.ToInt16(inputtxt1.Text);
a[1] = Convert.ToInt16(inputtxt2.Text);
a[2] = Convert.ToInt16(inputtxt3.Text);
a[3] = Convert.ToInt16(inputtxt4.Text);
max=4;
for (int u = 0; u < max; u++)
{
for (int i = 0; i < max - 1; i++) //Loop for the array for the sorting
{
if (a[i] > a[i + 1])
{
temp = a[i];
a[i] = a[i + 1];
a[i + 1] = temp;
}
}
}
groupBox2.Visible = true;
Outputtxt1.Text = Convert.ToString(a[0]);
Outputtxt2.Text = Convert.ToString(a[1]);
Outputtxt3.Text = Convert.ToString(a[2]);
Outputtxt4.Text = Convert.ToString(a[3]);
}
}
C# .Net Fabbocani Series, Even , Odd , Prime Number checking Form Application
public partial class Form1 : Form
{
int x;
public Form1()
{
InitializeComponent();
}
private void button1_Click_2(object sender, EventArgs e)
{
x = Convert.ToInt16(textBox1.Text);
if (x % 2 == 0) { label4.Text = "number is Even"; }
else if (x % 3 == 0) { label4.Text = "number is odd"; }
else if (x % x == 0) { label4.Text = "number is Prime"; }
else
{
label4.Text = "number is invalid";
}
}
}
run
output
!--------------------------------------------------------------------------------------------------------------------!
Fabbocani Series Program in C#
Code!!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace fabbocani_series
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
first = 0; second = 1;
if (e.KeyCode == Keys.Enter)
{
n = Convert.ToInt32(textBox1.Text);
for (c = 0; c < n; c++)
{
if (c <= 1)
{
next = c;
}
else
{
next = first + second;
first = second;
second = next;
}
richTextBox1.Text = " , " + next + richTextBox1.Text;
}
richTextBox1.Text = "\nfirst " + n + "number is at fabbocanic series is:-" + richTextBox1.Text;
}
}
}
{
int x;
public Form1()
{
InitializeComponent();
}
private void button1_Click_2(object sender, EventArgs e)
{
x = Convert.ToInt16(textBox1.Text);
if (x % 2 == 0) { label4.Text = "number is Even"; }
else if (x % 3 == 0) { label4.Text = "number is odd"; }
else if (x % x == 0) { label4.Text = "number is Prime"; }
else
{
label4.Text = "number is invalid";
}
}
}
run
output
!--------------------------------------------------------------------------------------------------------------------!
Fabbocani Series Program in C#
Code!!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace fabbocani_series
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
first = 0; second = 1;
if (e.KeyCode == Keys.Enter)
{
n = Convert.ToInt32(textBox1.Text);
for (c = 0; c < n; c++)
{
if (c <= 1)
{
next = c;
}
else
{
next = first + second;
first = second;
second = next;
}
richTextBox1.Text = " , " + next + richTextBox1.Text;
}
richTextBox1.Text = "\nfirst " + n + "number is at fabbocanic series is:-" + richTextBox1.Text;
}
}
}
Subscribe to:
Posts (Atom)