Results 1 to 4 of 4
Thread: C++ Java ?
Hybrid View
-
24th April 2011 14:33 #1
C++ Java ?
double a;
cout << "a= ";
cin >> a;
C++ ( ) . Java? Eclipse?
double a;
cout << "a= ";
cin >> a;
double b;
cout << "b= ";
cin >> b;
double P = a*b;
cout<< "P = "<<P<<"\n";
C++ .
Java?
.. 100 %
-
24th April 2011 15:49 #2
, . , , , :
4.
http://introjavabook.googlecode.com/.../Chapter4.htmlASUS X570-P|R7 5800X3D@NH-U14S|2X16G DDR4 3200 Corsair VENGEANCE LPX|Samsung 980 PRO 1TB|Radeon RX 7900 XTX 24G|AOC CQ32G1|Corsair RM750x|CM 693
-
24th April 2011 15:56 #3
, , !
, Eclipse , , (IDE) Java SDK-.
, Java , JDK 5.0 java.util.Scanner:
System.in std::cin, System.out - std::cout.Code:import java.util; ... Scanner input = new Scanner(System.in); System.out.print("a= "); double a = input.nextDouble(); System.out.print("b= "); double b = input.nextDouble(); ...Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
24th April 2011 16:02 #4
.
, 3 . , Scanner input = new Scanner(System.in); , import java.util , ( 5 6) 7
. , .
2-3 4




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in