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 do we use null pointer?
Tell us bitwise shift operators?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What are the restrictions of a modulus operator?
What are the types of arrays in c?
Can we assign string to char pointer?
What is calloc in c?
What is volatile variable in c with example?
Explain how can I pad a string to a known length?
How are portions of a program disabled in demo versions?
number of times a digit is present in a number
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Write a program to check armstrong number in c?
What are the different file extensions involved when programming in C?
What is register variable in c language?