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...

write a c programs to do multiplication of two numbers with
out using arithmatic operator ??????????

Answer Posted / vignesh1988i

#include<stdio.h>
#include<conio.h>
void main()
{
int m,n,result=0;
printf("enter the value of m & n");
scanf("%d%d",&m,&n);
for(int i=1;i<=n;i++)
result=result+m;
printf("\n%d * %d =%d",m,n,result);
getch();
}

Is This Answer Correct ?    34 Yes 59 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

1306


What do you mean by invalid pointer arithmetic?

1130


Can we change the value of #define in c?

1056


What is data structure in c and its types?

1113


Is calloc better than malloc?

1075


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1151


Does sprintf put null character?

1093


Explain the difference between strcpy() and memcpy() function?

1064


a c code by using memory allocation for add ,multiply of sprase matrixes

2862


What is oops c?

1340


How variables are declared in c?

1100


Write a program to print all permutations of a given string.

1235


explain what is an endless loop?

1147


What is structure and union in c?

1204


What is the purpose of void pointer?

1100