import java.util.Scanner;
class TenIfStatement {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Please type 9 ");
Scanner Santosh = new Scanner(System.in);
int test;
test = Santosh.nextInt();
if (test == 9){
System.out.print("Oh good your You typed correctly ");
}
else{
System.out.print("Contition is flase boss its not = 9 ");
}
}
}
==================Out put ==========================
Please type 9
9
Oh good your You typed correctly
Please type 9
10
Contition is flase boss its not = 9
No comments:
Post a Comment