Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Because we are poor, shall we be vicious? vern's Avatar
    Join Date
    Feb 2003
    Gender
    Male
    Posts
    5,790

    Default Re: LOOP PROGRAM, NEED A CODE C+


    I'd never answer posts like this because all these people do is ask others to do their homework for them, and most reply because it strokes their ego to reply. People just do it again and the cycle begins a new.

    PS. Wrong forum. Moved.

  2. #12
    Quote Originally Posted by Swordslave View Post
    for(x=1;x<=5;x++)
    {
    printf("Gwapo ko + %d ...\n", x);
    }


    Output:

    Gwapo ko + 1...
    Gwapo ko + 2...
    Gwapo ko + 3...
    Gwapo ko + 4...
    Gwapo ko + 5...
    or you can have it this way:

    int x = 0;

    while(x<=6)
    {
    printf("Di na tinuod +%d",x);
    x++;
    }

    just don't forget to increment your variable x. you don't want to get an infinity loop. it really sucks. T_T

  3. #13
    Lookig for a problem, try google codejam's prob A or B ...
    GCJ Dashboard
    This was one of the question sa qualifying 2 days ago

  4. #14

  5. #15
    ScrapeBox Development softtouch's Avatar
    Join Date
    Jan 2004
    Gender
    Male
    Posts
    3,699
    Blog Entries
    1
    Quote Originally Posted by vern View Post
    ...and the cycle begins a new.
    Thats maybe the loop he asked for...

  6. #16
    C.I.A. Platinum Member carmicael's Avatar
    Join Date
    Jul 2007
    Gender
    Male
    Posts
    2,142
    Quote Originally Posted by softtouch_ph View Post
    Thats maybe the loop he asked for...
    haha. right on.

    google is a good friend here.

    cheers!

  7. #17
    int main ()
    {
    float p=3.1416, r=1.0;
    double r=p*r*r;
    {
    cout<<"r="<<r<<",";
    cout<<"area="<<p*r*r<<",";
    }
    system("pause");
    return 0;
    }

  8.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. tabang mga preee!! need a code!!
    By john2116 in forum Websites & Multimedia
    Replies: 4
    Last Post: 04-14-2008, 03:09 PM
  2. MOVED: LOOP PROGRAM, NEED A CODE C+
    By vern in forum Software & Games (Old)
    Replies: 0
    Last Post: 12-10-2007, 04:36 AM
  3. i need link searcher php code
    By siegfredb in forum Websites & Multimedia
    Replies: 4
    Last Post: 04-14-2006, 12:44 AM
  4. excel programs; needs help guys!!!
    By rufo in forum Software & Games (Old)
    Replies: 3
    Last Post: 01-14-2006, 12:18 PM
  5. NEED HELP WITH THIS CODE
    By saminoske in forum Websites & Multimedia
    Replies: 1
    Last Post: 12-05-2005, 11:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top