Write an apex program to find out the biggest number from the given two numbers.
- Abhilash Banpurkar
- Nov 10, 2022
- 1 min read
Apex Program to Find out the biggest Number using if else condition
integer firstNumber,secondNumber;
firstNumber=1000;
SecondNumber=1000;
if(firstnumber==secondNumber)
{
System.debug('Both the Numbers are Equals.');
}
elseif(firstNumber>secondNumber)
{
System.debug('First Number is the Biggest One');
}
else
{
System.debug('second Number is the Biggest One');
}
Program :

Output:

Comments