Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace WindowsFormsApp15
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- float floattal = 5.8f;
- double doubletal = 8.9;
- int inttal = 7;
- private void btnKnap_Click(object sender, EventArgs e)
- {
- int resultat1 = (int) floattal + (int) doubletal;
- int resultat2 = (int)(floattal + doubletal);
- lbl1.Text = resultat1.ToString();
- lbl2.Text = resultat2.ToString();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement