Hi friends.
I want to know that here how we rewrite the code which is given below?
int a = 6, b = 28, c = 0;
if (a < b) c = a;
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Dec 28, 2011, 10:54 PM
VulpesPosted Dec 28, 2011, 4:40 AM
Satyapriya NayakPosted Dec 27, 2011, 11:56 PM
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 WindowsFormsApplication7
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
int a = 6, b = 28, c = 0;
if (a < b)
{
c = a;
MessageBox.Show(c.ToString());
}
else
{
MessageBox.Show("a Greater than b");
}
}
}
}
Thanks