answersLogoWhite

0


Best Answer

wap to input a number and check whether it is divisible by 7 or no

User Avatar

Wiki User

โˆ™ 2012-02-29 06:28:25
This answer is:
User Avatar
Study guides

What is a programming language

What does DOS stand for

What is a software that is distributed for free

What is application software

โžก๏ธ
See all cards
3.76
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
34 Reviews

Add your answer:

Earn +20 pts
Q: Write a program to enter a number and check whether number is divisible by 7 or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a program to check whether the number is divisible by 3?

maa ki aank


Write a program in c to check whether a number is divisible by five?

void main(){ int i,j; scanf("%d",&i); if((i%5)==0) printf("the given number is divisible by 5); }


How do you write a program in c plus plus to accept a number and check whether it is a multiple of 5?

To write a program to check whether a particular number is a multiple of 5, or any other number for that matter, you check to see if the first number, modulus the second number, is zero.if (N % 5 == 0) { /* N is divisible by 5 */ }If you don't have the modulus (%) operator, you can use the explicit expressionif (N - int (N / 5) * 5 == 0) { /* N is divisible by 5 */ }


Write a program By using if else statement to read a number and check whether it is positive or negative?

write a c++program by using if statement to read a number and check whether it is positive or negative


Write a program to accept a number and check wheather it is divisible by 5 or not?

bool isNumberDivisibleByFive(int number) { return(!(number % 5)); }


How do you write a Turbo C program to determine whether a number is prime or not?

234


How do you write a java program to print even numbers up to 100?

You write a for loop. Either increment the variable by 2 at a time, or increment it by 1 at a time, but inside the loop, test whether the number is divisible by 2.


Can you write a number that is divisible by 3 but not divisible by 6?

15


Any integer is input through the keyboard write a c program to find out whether it is an odd number or even number?

any integer is input through the keyboard. write a program to find out whether it is an odd number or even number using if else statement in c#.


How do you write a program to test if a given number is divisible by 6 in C programming?

if ( x % 6 == 0 ){ printf( "%d is divisible by 6", x ); } else { printf( "%d is not divisible by 6", x ); }


Can you write a number that is divisible by 6 but not 3?

No.


Write a program to find the number of and sum of all integers greater than 100 and less than 200 that are divisible by 77?

What for? There is only a 154 inside that is divisible by 77...

People also asked