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
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
Write a program on swapping (100, 50)
What functions are used for dynamic memory allocation in c language?
What is main () in c?
What is 1d array in c?
What is the difference between malloc() and calloc()?
What are keywords in c with examples?
Explain function?
Can we declare variable anywhere in c?
What do you mean by keywords in c?
Why does everyone say not to use gets?
What is #error and use of it?
How can I determine whether a machines byte order is big-endian or little-endian?
Can you write a programmer for FACTORIAL using recursion?