answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();

for (int i=1;i<=100;i++)

{

if(i%2 !=0 && i%3 !=0)

{

printf("\n Numbers that are not divisible by 2 or 3:%d \n ",i);

}

printf("\n");

}

getch();

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Program to print no divisible by 7?

cls input "enter a no"; num if num mod 14= num then print "no is divisible" else print "not divisible" end if end


Q2 Write a program to print even numbers between 10 and 50?

You can use int i; for (i = 10; i &lt;= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.


C program to print nos divisible by 8?

#include #include#define N 100 /* change the upper limit by changing value of N */int main(){int i;clrscr();printf("\nPROGRAM TO PRINT NUMBERS DIVISIBLE BY 8 between 1 and 100\n");for(i=1;i


How do you write a program to print the first n multiples of 7?

Algorithm: multiples input: two positive integers, m and n output: print first n multiples of m i = m; for j = 1 to n print i i = i + m; next j


How do you solve this program wap to print sum of a digit of an inputed number?

wap to print all the arnstrong no. between 100&amp;1000


Program to print wvwn numbers from 1 to 100 in gw basic?

In GW-BASIC, you can print even numbers from 1 to 100 using a simple loop. Here’s a sample code: FOR i = 1 TO 100 IF i MOD 2 = 0 THEN PRINT i NEXT i This program iterates through numbers 1 to 100 and prints each number if it is even (i.e., divisible by 2).


How do you Write a C program to print a Series of Odd Numbers and Even Numbers.?

Reference:http:cprogramming-bd.com/c_page2.aspx# strange number


C program to print 1 to 100 divisible by 2 and not divisible by 3 and 5?

include&lt;stdio.h&gt; #include&lt;conio.h&gt; main() { int i; /* looping variable */ for(i=1;i&lt;=100;i++) /* goes from 1 to 100 */ { if((i % 2 == 0) &amp;&amp; (i % 3 != 0) &amp;&amp; (i % 5 != 0)) /* checks all three conditions */ { printf("%d ",i); /* note the space after 'd' */ } } printf("\nEnd of Program"); /* End */ getch(); }


What is the program in QBASIC to print the following series 1 4 9 16?

10 CLS: PRINT "I shall now amaze the audience by printing " 20 PRINT "the four smallest perfect square integers." 30 for N = 1 to 4 : PRINT N, N^2 : NEXT N 40 PRINT: PRINT "Thank you." 50 PRINT "You've been a wonderful audience." 60 PRINT "I'm here until Friday." 70 PRINT "Don't forget to tip your waiter."


Write a unix program to print print a pattern?

echo 'print a pattern'


Write a c program to print the 100 to 1 nos?

Write a c program to print the 100 to 1 nos


How do you write a program that accepts 5 integers in an array and shows the average of 3?

To write a program that accepts 5 integers in an array and calculates the average of the first three, you can follow these steps: First, create an array to hold the 5 integers. Then, prompt the user to input the integers and store them in the array. Finally, compute the average of the first three integers by summing them and dividing by 3, and display the result. Here’s a simple example in Python: numbers = [int(input(&quot;Enter integer {}: &quot;.format(i + 1))) for i in range(5)] average = sum(numbers[:3]) / 3 print(&quot;Average of the first three integers:&quot;, average)