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...
User Profile
Collapse
-
Program to print prime numbers using sieve of eratosthenes
-
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>
... -
Blackout started a topic (new to c) need to write a program that prints the numerical value of eof...in C(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
No activity results to display
Show More