|
|
back to boardhow solve if doesn't so Posted by Error 27 Apr 2011 23:39 package javaapplication; import java.util.Scanner; public class InputScan { public static void main( String args[] ) { Scanner input = new Scanner( System.in ); int a; int b; System.out.println( "Эта программа отображает сумму двух чисел." ); System.out.print( "Введите первое целое число: " ); a = input.nextInt(); System.out.print( "Введите второе целое число: " ); b = input.nextInt(); System.out.printf( "Сумма %d\n", a+b ); } } Re: how solve if doesn't so Posted by AterLux 28 Apr 2011 18:48 |
|
|