Results 1 to 4 of 4

Thread: C++ Java ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Darkbound's Avatar
    Join Date: Apr:2011
    Location: Varna
    Posts: 240

    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 %

  2. #2
    Teh AimeR AimeR's Avatar
    Join Date: Dec:2006
    Location: //
    Posts: 4,307
    ASUS 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

  3. #3
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    , , !
    , Eclipse , , (IDE) Java SDK-.
    , Java , JDK 5.0 java.util.Scanner:
    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();
    ...
    System.in std::cin, System.out - std::cout.
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  4. #4
    Registered User Darkbound's Avatar
    Join Date: Apr:2011
    Location: Varna
    Posts: 240
    .

    , 3 . , Scanner input = new Scanner(System.in); , import java.util , ( 5 6) 7 . , . 2-3 4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |