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 rules for identifiers in c?
What is spaghetti programming?
What is a spanning Tree?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
How can I list all of the predefined identifiers?
Describe the difference between = and == symbols in c programming?
How to write a multi-statement macro?
What is structure pointer in c?
What is a rvalue?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
What is the purpose of realloc()?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
simple program of graphics and their output display
What is the general form of a C program?