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

15y 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


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


Write a unix program to print print a pattern?

echo 'print a pattern'


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 c program to print the 100 to 1 nos?

Write a c program to print the 100 to 1 nos


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(); }


Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?


Program for print prime all number from 1 to 100 in foxpro?

Oh, what a lovely request! In FoxPro, you can create a program to print all prime numbers from 1 to 100 by using a loop to check each number for divisibility only by 1 and itself. If it meets this criteria, you can print it out on the screen. Remember, every number is unique and special, just like a happy little tree in a vast forest.