Professional Documents
Culture Documents
C#prac
C#prac
Linq;
using System.Text;
using System.Windows.Forms;
namespace reversedString
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
double calc;
if (weight < 5)
calc = weight * 1.0;
if(weight>=5 && weight <8)
calc = weight * 0.9;
if(weight>=8 && weight < 12)
calc = weight * 0.75;
if(weight>12)
calc = weight * 0.6;
}
}