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
Why array is used in c?
What is a program flowchart?
can we change the default calling convention in c if yes than how.........?
What are header files in c?
What are the differences between new and malloc in C?
What are the types of macro formats?
What does dm mean sexually?
Write a program to show the change in position of a cursor using c
What is bubble sort in c?
How can I recover the file name given an open stream or file descriptor?
Explain null pointer.
What is the difference between ‘g’ and “g” in C?
What is a newline escape sequence?
Explain how do you determine a file’s attributes?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?