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

Why array is used in c?

1062


What is a program flowchart?

1280


can we change the default calling convention in c if yes than how.........?

2592


What are header files in c?

1120


What are the differences between new and malloc in C?

1206


What are the types of macro formats?

1163


What does dm mean sexually?

1381


Write a program to show the change in position of a cursor using c

1122


What is bubble sort in c?

1104


How can I recover the file name given an open stream or file descriptor?

1135


Explain null pointer.

1189


What is the difference between ‘g’ and “g” in C?

4091


What is a newline escape sequence?

1158


Explain how do you determine a file’s attributes?

1090


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1310