What is the mistake tell please ??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the mistake tell please ???

import java.util.*; public class Program { public static void main(String[] args) { Scanner s=new Scanner (System.in); int a=s.nextInt(); Switch(a); { case 1 : System.out.println("Hello"); break; case 2 : System.out.println("Namaste"); break; case 3 : System.out.println("Bonjour"); break; default : System.out.println("Invalid number"); } } }

14th Jan 2023, 4:44 AM
Suraj
Suraj - avatar
0 Answers