i want the output in the form of 1 and 0 if through boolean expression how we could do it.if anybody know kindly tell me
Scanner input=new Scanner(System.in);
int age;
System.out.println("enter ur age" );
age=input.nextInt();
if (age > 60){
System.out.println("Success");
}
Aucun commentaire:
Enregistrer un commentaire