answersLogoWhite

0


Best Answer

#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

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program to print all integers between 1 to 100 not divisible by 2 or 3?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.


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

Prime numbers are numbers that are only divisible by themselves and the number 1. You can write a program to print all prime numbers from 1 to 100 in FoxPro.


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


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

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


Write a program to accept any number n print the qube of all the number from 1 to n that are divisible by 3?

# Ruby code print 'Enter n: '; n = gets.to_i n.times { | i | puts ( i + 1 ) ** 2 if ( i + 1 ) % 3.0 == 0.0 }