write a c programs to do multiplication of two numbers with
out using arithmatic operator ??????????
Answer Posted / surajit
#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 ? | 6 Yes | 19 No |
Post New Answer View All Answers
How can I read a binary data file properly?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What is identifier in c?
What is calloc malloc realloc in c?
What is c mainly used for?
Is sizeof a keyword in c?
What does main () mean in c?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
When was c language developed?
What is a stream water?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is advantage of pointer in c?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Are negative numbers true in c?
What does a pointer variable always consist of?