Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package edu.myuni1001;
- public class Main {
- public static void main(String[] args) {
- char gender = 'M';
- if(gender=='M'){
- System.out.println("You are a girl");
- }
- else{
- System.out.println("You are a boy");
- }
- int month = 2;
- if(month==1){
- System.out.println("January");
- }
- else if(month==2){
- System.out.println("February");
- }
- else{
- System.out.println("Other month");
- }
- double mark = 5;
- if(mark<5){
- System.out.println("Fail");
- }else {
- System.out.println("Pass");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement