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

VulpesRank #55 · 29.2K reputationPosted Oct 9, 2014, 1:48 AM EDT
Sample output:
Munesh SharmaRank #174 · 13.9K reputationPosted Oct 8, 2014, 11:32 PM EDT
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");
}
}
Munesh SharmaRank #174 · 13.9K reputationPosted Oct 8, 2014, 11:33 PM EDT
pad pad20 reputationPosted Oct 9, 2014, 5:27 AM EDT
VulpesRank #55 · 29.2K reputationPosted Oct 9, 2014, 5:45 AM EDT
pad pad20 reputationPosted Oct 10, 2014, 10:57 PM EDT
Vithal WadjeRank #19 · 47.2K reputationPosted Oct 11, 2014, 12:38 AM EDT
pad pad20 reputationPosted Oct 11, 2014, 7:04 AM EDT
VulpesRank #55 · 29.2K reputationPosted Oct 11, 2014, 3:20 PM EDT
What errors are you getting?
Posted Oct 12, 2014, 10:32 AM EDT
VulpesRank #55 · 29.2K reputationPosted Oct 12, 2014, 12:13 PM EDT
Posted Oct 12, 2014, 1:36 PM EDT