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
using for loop sum 2 number of any 4 digit number in c language
Explain how can you avoid including a header more than once?
What is dynamic dispatch in c++?
What is structure of c program?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is pointers in c with example?
What is a good way to implement complex numbers in c?
What is a pointer value and address in c?
What is a loop?
What is the right way to use errno?
List the difference between a "copy constructor" and a "assignment operator"?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What are pragmas and what are they good for?
Explain what are binary trees?