ecco il COdice che ho Scritto....
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 Cassa2
{
public partial class Cassa : Form
{
public Cassa()
{
InitializeComponent();
}
private void sc_Click(object sender, EventArgs e)
{
ps.Text = Convert.ToString((Convert.ToDouble(p1.Text) - (Convert.ToDouble(p1.Text) / 100)*(Convert.ToDouble(s1.Text))));
s2.Text = Convert.ToString((Convert.ToDouble(p1.Text) / 100) * (Convert.ToDouble(s1.Text)));
}
private void Cassa_Load(object sender, EventArgs e)
{
}
}
}