write a program to find a given no. is divisible by 3 or not
without using any arthimetic operators?
Answer Posted / viral
#include<conio.h>
#include<stdio.h>
void main()
{
int a;
clrscr();
printf("enter the number ");
scanf("%d",&a);
if(a%3==0)
printf("the number %d is divisble by 3",a);
else
printf("the number %d is not divisible by 3",a);
getch();
}
| Is This Answer Correct ? | 20 Yes | 48 No |
Post New Answer View All Answers
What is far pointer in c?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
Write a program to check palindrome number in c programming?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
What is bss in c?
What are the various types of control structures in programming?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
Why c is known as a mother language?
What does %d do in c?
Write a program to print ASCII code for a given digit.
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
How can you avoid including a header more than once?
What is the size of array float a(10)?
Why header file is used in c?