Category >
CSHARP
|| Published on :
Wednesday, November 18, 2020 || Views:
1669
||
create a Windows form to calculate compound interest and print the result on message box
Here Pawan Kumar will explain how to create a Windows form to calculate compound interest and print the result on message box
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication8
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
int p, t, r, si;
{
p = Convert.ToInt32(textBox1.Text);
r = Convert.ToInt32(textBox2.Text);
t = Convert.ToInt32(textBox3.Text);
si = (p * t * r) / 100;
MessageBox.Show("Interest is"+si);
}
}
}
}