public class Main {
public static void main(String[] args) {
System.out.println(23 == 45);
}
}
NOTE:
- The output of this program will come false as we used boolean operator(==).
- Didn't use Scanner as no input from the user was needed to be taken.
- We can also do this program by storing 23 and 45 in int , float , etc.
No comments:
Post a Comment