User Profile

Collapse

Profile Sidebar

Collapse
Blackout
Blackout
Last Activity: Feb 11 '08, 01:26 AM
Joined: Oct 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Program to print prime numbers using sieve of eratosthenes

    Hi, I'm having problems with this C program. Whenever I run it, it doesn't print anything. The program is supposed to compute and display all the prime numbers from 1 - 300 using the sieve of eratosthenes and using arrays (passing arrays to functions). Whenever i run it the compiler compiles it, shows a window for half a second, and closes again. Here is what I've done so far:
    [code=c]
    /* This program uses the Sieve of Eratosthenes...
    See more | Go to post
    Last edited by sicarie; Nov 13 '07, 01:36 PM. Reason: Code tags

  • Blackout
    started a topic Using arrays in program
    in C

    Using arrays in program

    Hi,
    I'm new to C and need to make a program that displays the output of the first six powers of 2 like this: 1 2 4 8 16 32
    (2 to the power of 0, 2 to the power of 1, 2 to the power of 2, and so forth)
    I made the program so far without using arrays and was wondering if i could get some help on how to use them in this program. Here is what I've done so far:

    #include <stdio.h>
    ...
    See more | Go to post

  • (new to c) need to write a program that prints the numerical value of eof...

    Hi, I'm new to c and need to write a program that prints the numerical value of eof but the problem is I don't even know what the numerical value of eof is or how im supposed to find it!!! I've looked all over the web trying to find info about it but I can't find much info about end of file. help please! just need to know what it is! thanks
    See more | Go to post
No activity results to display
Show More
Working...