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

What are the advantages of using macro in c language?

583


Explain void pointer?

583


Tell us something about keyword 'auto'.

655


What type is sizeof?

573


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

660






What is structure padding and packing in c?

608


What is gets() function?

661


What is the purpose of main( ) in c language?

610


Can the sizeof operator be used to tell the size of an array passed to a function?

608


How macro execution is faster than function ?

658


What is the importance of c in your views?

584


simple program of graphics and their output display

1462


what are the 10 different models of writing an addition program in C language?

1430


How can you tell whether a program was compiled using c versus c++?

613


How do we open a binary file in Read/Write mode in C?

671