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 |
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What is pointers in c?
Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)
Explain About fork()?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
write a C program to print the program itself ?!
what is recursion in C
What are dangling pointers in c?
Why is malloc used?
What is an expression?
main() { int i = -3,j=2,k=0,m; m= ++i || ++j && ++k; printf("%d%d%d",i,j,k,m); }
How many levels of indirection in pointers can you have in a single declaration?
0 Answers Agilent, ZS Associates,