When I tried to run a java program in eclipse editor. Result is not getting printed in console. instead a blank space is coming. In the console I am able to type numbers.Why it is allowing me to type no: in console space even though I have not used SCanner class. I don't know why this is happening. I am beginner in programming. Can someone pls guide in this issue. Attaching the program I tried
Код: Выделить всё
package geeksforgeeks; public class reverse { static int global(long n) { long count=0; { while(n!=0) { count=n%10; ++count; } return (int) count; } } public static void main(String[] args) { long n=47321; System.out.println("Reverse of given no:"+global(n)); } } Источник: https://stackoverflow.com/questions/781 ... in-console
Мобильная версия