when user give a number it multiply with 9 without
useing '+' and '*' oprator
Answer Posted / 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 |
Post New Answer View All Answers
Explain the binary height balanced tree?
How can I do graphics in c?
List a few unconditional control statement in c.
Difference between malloc() and calloc() function?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
What is a string?
Does c have circular shift operators?
What is const volatile variable in c?
What is the use of clrscr?
What is a struct c#?
Calculate 1*2*3*____*n using recursive function??
Explain can static variables be declared in a header file?
Are local variables initialized to zero by default in c?
What are reserved words?
What is difference between arrays and pointers?