+ 1
Why is my code not working in java?
I want to print the input if it is less than 7. import java.util.Scanner; public class myclass{ public static void main(String[] args){ Scanner dumb = new Scanner(System.in); int x = dumb.nextInt(); if (x<6){ System.out.println(input); } } }
2 Answers
+ 5
Hello, abhishek mohite !
In which particular programming language, do you want to do this? Please write, and other people can help you.
+ 1
if(input<7) System.out.println(input);