multiple of 9 without useing +,* oprator
Answers were Sorted based on User's Feedback
Answer / guest
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{clrscr();
int a,i,r=0;
scanf("%d",&a);
for(i=a;i>0;i--)
r=r-9;
r=abs(r);
printf("%d",r);
getch();
}
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / tknowledge05
The above guest is me .. okkkkk....
by the time i solved and executing i was logged out and when i posted the answer it considered guest............
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / jeke kumar gochhayat
this program is for any no
#include<stdio.h>
void main()
{
int n,k,c,l,i;
printf("enter the no");
scanf("%d",&n);
printf("which no of multiple u want");
scanf("%d",&l);
k=n;c=n;
for(i=1;i<l;i++)
{
while((n--)>0)
k++;
n=c;
}
printf("the multiple=%d",k);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
will u give me old quesrion papers for aptitude for L & t info tech?
can we store values and addresses in the same array? explain
whenever a question is posted in a particular category in allinterview.com, Is there any facility to receive an indication mail. For eg: I need to receive an indication email, whenever a question is posted under the category “C Langauage”.
How do I create a directory? How do I remove a directory (and its contents)?
What are data structures in c and how to use them?
print the following using nested for loop. 5 4 3 2 1 1 2 3 4 3 2 1 1 2 1 2 1 1 2 3 4 3 2 1 1 2 3 4 5
int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }
who is the founder of c
19 Answers College School Exams Tests, HP,
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
How will you divide two numbers in a MACRO?
what is c++ programming?
/*program to calculate hra,da in salary if salary less than 10000 then hra15%,da13% otherwise hra20%,da18%/*