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
Is c programming hard?
What is c language and why we use it?
What is static memory allocation? Explain
How main function is called in c?
What does char * * argv mean in c?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
How can you find out how much memory is available?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
Explain how can you restore a redirected standard stream?
Why do we need volatile in c?
What is page thrashing?
What is a scope resolution operator in c?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Write a program to print “hello world” without using semicolon?