Results 1 to 7 of 7

Thread: C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Nov:2010
    Location:
    Posts: 3

    C++

    -
    "x" "n", "n" 1. , 17. , .
    void main(){
    double i,x,n,s=17,x1=1;
    cout<<"x:"; cin>>x;
    cout<<"n:"; cin>>n;
    for (i=n; i<=n; i--)
    {x1=x1*x;
    s=s+x1;}
    cout<<s;
    }

    , , :
    void main(){
    double i,x,n,s=17,x1=1;
    cout<<"x:"; cin>>x;
    cout<<"n:"; cin>>n;
    for (i=1; i<=n; i++)
    {x1=x1*x;
    s=s+x1;}
    cout<<s;
    }

    , "x" 1, "n".
    , .

  2. #2
    Defender Kaspirtov's Avatar
    Join Date: Jun:2006
    Location: Sf
    Posts: 7,414
    ...

    for (i=n; i<=n; i--)
    - .
    " , , , , ."

  3. #3
    Registered User
    Join Date: Nov:2010
    Location:
    Posts: 3
    ?

  4. #4
    Defender Kaspirtov's Avatar
    Join Date: Jun:2006
    Location: Sf
    Posts: 7,414
    Quote Originally Posted by psihiatar20 View Post
    ?
    ?
    " , , , , ."

  5. #5
    Registered User
    Join Date: Nov:2010
    Location:
    Posts: 3
    Quote Originally Posted by Kaspirtov View Post
    ?
    .

  6. #6
    Defender Kaspirtov's Avatar
    Join Date: Jun:2006
    Location: Sf
    Posts: 7,414
    Quote Originally Posted by psihiatar20 View Post
    .
    . ? , . ? - . .
    " , , , , ."

  7. #7
    -==-
    Join Date: Sep:2003
    Location:
    Posts: 6,444
    ++ .
    He who asks is a fool for five minutes, but he who does not ask reamins a fool forever. Old Chinese saying
    Quote Originally Posted by worm4 View Post
    a .

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 |