Computer Science, asked by mathesj, 11 months ago

3.3 Code Practice: Question 1 Edhesive

Enter today's day numerically: 17
Sorry, not a payday.
Enter today's day numerically: 30
It's payday!

Answers

Answered by Anonymous
1

Answer:

in java,

Explanation:

class Display

{

public static void main

{

Scanner sc=newScanner(System.in)

System.out.print("Enter your choice");

int n= sc.nextInt;

if (n==30)

{

System.out.print("Today is payday!!");

}

else

{

System.out.print("not a payday");

}

}

}

Similar questions