C Program to find the Prime numbers between 1 and 100 Using do loop

This page has a C Program to find the Prime numbers between 1 and 100 using do loop. Prime numbers are the integer numbers which have no divisors other than 1 and the specific numbers. For example: 59 61 67 71 73 . . . are Prime numbers. The below given C program to find the prime numbers between 1 and 100. Kindly check out the program to find the Prime numbers between 1 and 100 using do loop.

How eill ask to find the Prime numbers between 1 and 100 Using do loop

The questions to find the Prime numbers between 1 and 100 using do loop can be asked as 1). C program to find all prime numbers between 1 and 100. 2). C program to find all prime numbers from 1 to 100. 3). C program to find the prime numbers within 1 and 100. 4). C program to find the list of prime numbers between 1 and 100.

Program to find Prime numbers between 1 and 100 using do loop

#include<stdio.h>

int main(){

int number,k,remark;

number=2;

clrscr();

printf(" The prime numbers between 1 and 100 using do loop . . .

");

do

{

remark=0;

k=2;

while(k<=number/2){

if((number % k) == 0){

remark++;

break;

}

k++;

}

if(remark==0)

printf(" %d ",number);

++number;

}while(number<=100);

return 0;

}

Sample output:

The prime numbers between 1 and 100 using do loop . . .

2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97