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 WindowsFormsApp1
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (int.Parse(textBox1.Text) == 1)
{
textBox2.Text = "JANUARI";
}
else if (int.Parse(textBox1.Text) == 2)
{
textBox2.Text = "FEBRUARI";
}
else if (int.Parse(textBox1.Text) == 3)
{
textBox2.Text = "MARET";
}
else if (int.Parse(textBox1.Text) == 4)
{
textBox2.Text = "APRIL";
}
else if (int.Parse(textBox1.Text) == 5)
{
textBox2.Text = "MEI";
}
else if (int.Parse(textBox1.Text) == 6)
{
textBox2.Text = "JUNI";
}
else if (int.Parse(textBox1.Text) == 7)
{
textBox2.Text = "JULI";
}
else if (int.Parse(textBox1.Text) == 8)
{
textBox2.Text = "AGUSTUS";
}
else if (int.Parse(textBox1.Text) == 9)
{
textBox2.Text = "SEPTEMBER";
}
else if (int.Parse(textBox1.Text) == 10)
{
textBox2.Text = "OKTOBER";
}
else if (int.Parse(textBox1.Text) == 11)
{
textBox2.Text = "NOVEMBER";
}
else if (int.Parse(textBox1.Text) == 12)
{
textBox2.Text = "DESEMBER";
}
else
{
textBox2.Text = "?";
}
}
}
}