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
What are the advantages of using macro in c language?
Explain void pointer?
Tell us something about keyword 'auto'.
What type is sizeof?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is structure padding and packing in c?
What is gets() function?
What is the purpose of main( ) in c language?
Can the sizeof operator be used to tell the size of an array passed to a function?
How macro execution is faster than function ?
What is the importance of c in your views?
simple program of graphics and their output display
what are the 10 different models of writing an addition program in C language?
How can you tell whether a program was compiled using c versus c++?
How do we open a binary file in Read/Write mode in C?