a. create a console base application named Multiplication whose Main() method asks the user to input an inter and then calls a method named multiplicationTable() which displays the results of multiplying the integer by each of the numbers 2 through 10
b. Create GUI application named MultiplicationGUI that calls the MultiplicationTable() method described in (a) after the user enters an integer into a TextBox and Clicks a Button.
Please help me in writing this two codes (a) console application (b) in window form application. I am not able execute.
Loading
VulpesPosted Oct 9, 2014, 5:48 AM
Sample output:
Posted Oct 12, 2014, 5:36 PM
VulpesPosted Oct 12, 2014, 4:13 PM
Posted Oct 12, 2014, 2:32 PM
VulpesPosted Oct 11, 2014, 7:20 PM
What errors are you getting?
pad padPosted Oct 11, 2014, 11:04 AM
Vithal WadjePosted Oct 11, 2014, 4:38 AM
pad padPosted Oct 11, 2014, 2:57 AM
VulpesPosted Oct 9, 2014, 9:45 AM
pad padPosted Oct 9, 2014, 9:27 AM
Munesh SharmaPosted Oct 9, 2014, 3:33 AM
Munesh SharmaPosted Oct 9, 2014, 3:32 AM
https://answers.yahoo.com/question/index?qid=20130319185257AAwsc9A
or this
double of = 0;
double from = 0;
double to = 0;
double ans = 0;
private void button1_Click(object sender, EventArgs e)
{
Table.Items.Clear();
if (double.TryParse(Of.Text, out of) == true && double.TryParse(From.Text, out from) == true && double.TryParse(To.Text, out to) == true)
{
of = double.Parse(Of.Text);
from = double.Parse(From.Text);
to = double.Parse(To.Text);
for (double i = from; i <= to; i++)
{
ans = i * of;
Table.Items.Add(of + " x " + i + " = " + ans.ToString());
}
}
else
{
MessageBox.Show("Please enter a valid value");
}
}