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 extern c used for?
What are different storage class specifiers in c?
How was c created?
What is a file descriptor in c?
Explain how does flowchart help in writing a program?
Tell us something about keyword 'auto'.
How to draw the flowchart for structure programs?
What are the 5 elements of structure?
How can I direct output to the printer?
What is meant by type casting?
write a program to find the given number is prime or not
What is equivalent to ++i+++j?
Is main an identifier in c?
Write program to remove duplicate in an array?
What does c in a circle mean?