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
How can I write a function that takes a format string and a variable number of arguments?
Differentiate between calloc and malloc.
What is the explanation for prototype function in c?
Can include files be nested?
How does placing some code lines between the comment symbol help in debugging the code?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What are linker error?
Is c procedural or object oriented?
Why is %d used in c?
What is console in c language?
Explain how can I manipulate strings of multibyte characters?
Explain how can you restore a redirected standard stream?
What is a #include preprocessor?
Where static variables are stored in memory in c?
When should I declare a function?