Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace Kalkulator_za_kvote
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public float a;
  15. public float b;
  16. public float c;
  17. public float d;
  18. public float dd;
  19. public float f;
  20. public float g;
  21. public float rez;
  22. public Form1()
  23. {
  24. InitializeComponent();
  25. }
  26.  
  27. private void button1_Click(object sender, EventArgs e)
  28. {
  29. a = float.Parse(textBox1.Text);
  30. b = float.Parse(textBox2.Text);
  31. c = float.Parse(textBox3.Text);
  32. d = float.Parse(textBox4.Text);
  33. dd = float.Parse(textBox5.Text);
  34. f = float.Parse(textBox6.Text);
  35. g = float.Parse(textBox7.Text);
  36. if (a > 0)
  37. {
  38. a = rez;
  39. rez = float.Parse(textBox8.Text);
  40. }
  41. if (a > 0)
  42. {
  43. rez = a * b;
  44. rez = float.Parse(textBox8.Text);
  45. }
  46. if (a > 0 && b > 0)
  47. {
  48.  
  49. }
  50. if (a > 0 && b > 0 && c > 0)
  51. {
  52.  
  53. }
  54. if (a > 0 && b > 0 && c > 0 && d > 0)
  55. {
  56.  
  57. }
  58. if (a > 0 && b > 0 && c > 0 && d > 0 && dd > 0)
  59. {
  60.  
  61. }
  62. if (a > 0 && b > 0 && c > 0 && d > 0 && dd > 0 && f > 0)
  63. {
  64.  
  65. }
  66. if (a > 0 && b > 0 && c > 0 && d > 0 && dd > 0 && f > 0 && g > 0)
  67. {
  68.  
  69. }
  70.  
  71.  
  72.  
  73. }
  74. }
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement