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
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
English,
5 months ago
Social Sciences,
5 months ago
History,
11 months ago
Math,
1 year ago
History,
1 year ago