Computer Science, asked by makashdhoni2003, 1 month ago

Write and execute a C program to generate numbers between 1 and 100 which are divisible by 2 and are not divisible by 3 and 5

Answers

Answered by pranjalkushwaha297
2

Answer:

include<studio.h>

#include<conio.h>

main( )

{

int i;/*looping variable

for (i=1;i<=100;i++)/*goes from 1to100*/

{

if ((i%2==0)&&(i%3!=0)&&(i%5!=0))/*check all three condition*/

{

printf("%d",i);/*note the space after 'd'*/

}

}

printf("\nEnd of program");/*End*/

getcha( ) ;

}

Explanation:

please mark me as brainliest ans

Similar questions