All pastes #954509 Raw Edit

Unnamed

public text v1 · immutable
#954509 ·published 2008-03-23 23:05 UTC
rendered paste body
#include <stdio.h>

int main(void) {

int max; {
printf("Insert the maximum number: ");
scanf("%d", &max); 
}

int n = 0; 

if (n != 0 && n != 1);
do{
if(n / n == 1 && n / 1 == n);
printf("The prime numbers are: \n %d \n", n);
n++;
} while(n < max);
return 0;
}