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
Do pointers take up memory?
What are header files why are they important?
Explain what are the standard predefined macros?
Explain how can you be sure that a program follows the ansi c standard?
shorting algorithmS
How do we make a global variable accessible across files? Explain the extern keyword?
How many levels of pointers have?
How to compare array with pointer in c?
Write a simple code fragment that will check if a number is positive or negative.
What is preprocessor with example?
What is the difference between class and object in c?
What is the -> in c?
What does stand for?
what is a function method?give example?
What is pointers in c with example?