Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain the binary height balanced tree?

1239


How can I do graphics in c?

1076


List a few unconditional control statement in c.

1032


Difference between malloc() and calloc() function?

1271


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

1267


What is a string?

1174


Does c have circular shift operators?

1304


What is const volatile variable in c?

1105


What is the use of clrscr?

1159


What is a struct c#?

1108


Calculate 1*2*3*____*n using recursive function??

2102


Explain can static variables be declared in a header file?

1204


Are local variables initialized to zero by default in c?

1102


What are reserved words?

1161


What is difference between arrays and pointers?

1153