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
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
Explain how can type-insensitive macros be created?
Why do we use c for the speed of light?
What is string function c?
write a proram to reverse the string using switch case?
How many bytes is a struct in c?
What is the benefit of using an enum rather than a #define constant?
Explain the properties of union.
What are the types of operators in c?
What is uint8 in c?
I have a varargs function which accepts a float parameter?
Is it possible to initialize a variable at the time it was declared?
What is structure in c explain with example?
What is operator promotion?