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 are the primitive data types in c?
What are the header files used in c language?
What is wrong with this declaration?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What are dangling pointers in c?
write a program to find out prime number using sieve case?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
Explain the bubble sort algorithm.
Define Spanning-Tree Protocol (STP)
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
What does. int *x[](); means ?
How can I send mail from within a c program?
How can I change their mode to binary?
What does calloc stand for?
Is c procedural or object oriented?