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


Please Help Members By Posting Answers For Below Questions

What is extern c used for?

572


What are different storage class specifiers in c?

623


How was c created?

591


What is a file descriptor in c?

568


Explain how does flowchart help in writing a program?

636






Tell us something about keyword 'auto'.

668


How to draw the flowchart for structure programs?

8764


What are the 5 elements of structure?

575


How can I direct output to the printer?

820


What is meant by type casting?

632


write a program to find the given number is prime or not

3850


What is equivalent to ++i+++j?

648


Is main an identifier in c?

607


Write program to remove duplicate in an array?

604


What does c in a circle mean?

587