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
What is the code in while loop that returns the output of given code?
Explain 'bit masking'?
What does *p++ do?
Why do we need functions in c?
How many keywords (reserve words) are in c?
What does %p mean?
Why we not create function inside function.
Why main function is special give two reasons?
What is c preprocessor mean?
What is #line?
what is the different bitween abap and abap-hr?
Explain the concept and use of type void.
What happens if a header file is included twice?
What is variables in c?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.