Page 1 of 6 1234 ... LastLast
Results 1 to 10 of 55
  1. #1

    Default C/C++ i need help in making a program


    ei guys..

    i need you to help me in making a program...
    Machine Problem namo.. sa skol ra gd..

    if your going to input any number..
    it would output the prime numbers only..
    how to i do it?!?

    it requires loop daw..

  2. #2

    Default Re: C/C++ i need help in making a program

    the first 3 prime numbers are 2, 3, and 5... any number na imong i modulo ana nila na naay remainder will be considered a prime number

    pero ahak ingon ani raman tong solution nako... pero wa ko kuybaw kung sakto ba gyud... you might as well search programmersheaven or planetsourcecode

  3. #3

    Default Re: C/C++ i need help in making a program


    I think what you are trying to do is factorize the numbers into its constituent primes. A prime is an integer greater than 1 whose only divisors are 1 and itself.

    Either that or you are trying to print the prime numbers from 1 to n, where n is the given number.

    [ simon.cpu ]

    Quote Originally Posted by mE_bytes
    ei guys..

    i need you to help me in making a program...
    Machine Problem namo.. sa skol ra gd..

    if your going to input any number..
    it would output the prime numbers only..
    how to i do it?!?

    it requires loop daw..

  4. #4

    Default Re: C/C++ i need help in making a program

    gamita lang ang modulo nga operator bai! nya ibutang siya sa usa ka condition!! swack kay na bai!! hehehe

  5. #5

    Default Re: C/C++ i need help in making a program

    waaah!!

    tabangih q beh...

    post ang program drih..


    plzzzzzzzz

  6. #6

    Default Re: C/C++ i need help in making a program

    No pain, no glory. =)

  7. #7

    Default Re: C/C++ i need help in making a program

    i guess first exerise na sa looping. hehehehehe
    mana ko ana pero nalimut na ko >.< year 2000 pa man siguro ko niagi ana >.<

  8. #8

    Default Re: C/C++ i need help in making a program

    Quote Originally Posted by mE_bytes
    ei guys..

    i need you to help me in making a program...
    Machine Problem namo.. sa skol ra gd..

    if your going to input any number..
    it would output the prime numbers only..
    how to i do it?!?

    it requires loop daw..

    sulbad ba ni or wala pa??
    sayon ra mn ni... hehehe-

    mobo ra ang codes ani!
    usa ra ka line ang mgda sa bida?

    i can help u if wla pa...

  9. #9

    Default Re: C/C++ i need help in making a program

    wla pa na solbad...

    tabangi ko.. puhleezzz

  10. #10

    Default Re: C/C++ i need help in making a program

    for(x=0;x<=q;x++)
    {
    factor = 0;

    for(y=1;y<=x;y++)
    {
    a = x%y;

    if(a == 0)
    {
    factor++;
    }
    }
    if(factor == 1 || factor == 2)
    {
    printf("%d \n", &x);
    }
    }

    mao ni ang code sa prime kaw nalay bahala sa declarations...

  11.    Advertisement

Page 1 of 6 1234 ... LastLast

Similar Threads

 
  1. Replies: 5
    Last Post: 03-04-2013, 04:24 PM
  2. Need help in Classic ASP programming
    By afortaliza in forum Programming
    Replies: 4
    Last Post: 12-08-2008, 02:18 PM
  3. Need help in Installing Java programs in my Samsung D880
    By Soj in forum Software & Games (Old)
    Replies: 0
    Last Post: 04-24-2008, 06:34 PM
  4. need help in going to Aparri.
    By mnpesiao in forum Destinations
    Replies: 4
    Last Post: 05-21-2006, 11:16 AM
  5. Want to buy a new mp3 player. Need help in selecting one.
    By metdumangas in forum Gizmos & Gadgets (Old)
    Replies: 21
    Last Post: 01-04-2006, 09:01 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