Results 1 to 6 of 6

Thread: C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User marto96's Avatar
    Join Date: May:2008
    Location:
    Posts: 2,211

    C++

    . C++, , . , 1234, , 2143 - 1234+2143 .

    Code:
    #include <iostream.h>
    int main()
    {
    int x,a,b,c,d,p,s;
    cin>>x:
    a=(x/1000)%10;
    b=(x/100)%10;
    c=(x/10)%10;
    d=x%10;
    , , . p=b||a||d||c, p=b&&a&&d&&c, "p" "s", x p - 1235. ?
    ASRock B450M Pro4 / 5700X@4.5GHz / MSI RX 6600 XT Mech 2X / be quiet! Dark Rock 4 / 2x16GB FlareX 3200MHz CL16 / FSP Hydro G Pro 1000W / Samsung Odyssey G5 S27AG50

  2. #2
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    .. a <-> b c <-> d? , :

    Code:
    result = c + d*10 + a*100 + b*1000;
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  3. #3
    Registered User marto96's Avatar
    Join Date: May:2008
    Location:
    Posts: 2,211
    Quote Originally Posted by anrieff View Post
    .. a <-> b c <-> d? , :

    Code:
    result = c + d*10 + a*100 + b*1000;
    !
    ASRock B450M Pro4 / 5700X@4.5GHz / MSI RX 6600 XT Mech 2X / be quiet! Dark Rock 4 / 2x16GB FlareX 3200MHz CL16 / FSP Hydro G Pro 1000W / Samsung Odyssey G5 S27AG50

  4. #4
    AMD fan EvilDevil_'s Avatar
    Join Date: Dec:2010
    Location:
    Posts: 1,275
    , , . "true", true||true e true, - 1, =1. true&&true .

    Laa shay'a waqi'un moutlaq bale kouloun moumkine.
    Nulla &#233; reale, tutto &#233; lecito.

  5. #5
    a.k.a. Kal KaloyanP's Avatar
    Join Date: Dec:2005
    Location: UK
    Posts: 3,750
    Quote Originally Posted by EvilDevil_ View Post
    , , . "true", true||true e true, - 1, =1. true&&true .
    , "TRUE" if() C/C++.
    D80; 50/1.8D; Tamron 70-300; 18-55 VR;

  6. #6
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    true, true


    x'cuz d pun
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

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 |