Computer Science, asked by umarfarooqshaik770, 5 months ago

2. import java.util.*;
3
4. class Solution {
5
public void
Solution(int N
niq
its
1. Compile and
will run your cod
against Sample
Test Cases only
2. Run actual Te
Cases will run yo
code against
Hidden Test Cas
3. Your code will
tested against
actual Test Case
automatically wl
All of the Sampl
Test case are
Passed
Successfully
Got
en
pr
6
7 / /write your logic
here and print
the desired
output
8
9
}
10
11
12 // Following is the
part of the program
and is provided as
an assistance to
read the input.
13 - class Main {
14-
public static void
main(String[]
args ) throws
InterruptedExce
ption {
15
Scanner sc =
new Scanner
(System.in);
16
int N = sc
.nextInt();
17
Solution s =
new solution
():
18
s. Solution(N);
19
The
hgl
x 3
Run actual Test Cas​

Answers

Answered by leenaratha123
0

Answer:

import java.util.*;

public class ( ur class name should be mention here)

public static void main()

{

(if u r doing scanner class then)

scanner SC= new scanner ( System.in)

Similar questions