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

Answers were Sorted based on User's Feedback



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

Answer / vinay

#include<stdio.h>
#include<conio.h>
void main()
{int i, j ,num1,num2;
printf("enter the value of num1 & num2");
scanf("%d%d",&num1,&num2);
for(i=1; i<=num1; i++)
for(j=1;j<=num2;j++)
{static int k=1;
k++;
)printf("%d\n",k);}

Is This Answer Correct ?    4 Yes 2 No

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

Answer / mugdha

#include<stdio.h>
#include<conio.h>
void main()
{int i, j ,num1,num2;
printf("enter the value of num1 & num2");
scanf("%d%d",&num1,&num2);
for(i=1; i<=num1; i++)
for(j=1;j<=num2;j++)
{static int k=1;
k++;
)printf("%d\n",k);}

Is This Answer Correct ?    12 Yes 19 No

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

Answer / mohan0877

#include<stdio.h>
main()
{
int a,b,result;
print("Enter values of a and b :")
scanf{"%d %d",&a,&b};
result=0;
while(b!=0)
{
if(b&01)
resultresul+a;
a<<=1;
b>>=1;
}
}

Is This Answer Correct ?    3 Yes 13 No

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

Answer / vivekananda

#include<stdio.h>
void main()
{
int num = 2;
res = num << 1; //multiplication by 2
printf("%d\n",res);
}

Is This Answer Correct ?    24 Yes 37 No

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

Answer / 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

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

Answer / dally

#include<stdio.h>
int main()
{
int a=9,b=7;
int sum =0;
while(a--)
sum = sum+b;
printf("%d\n",sum);
}

Is This Answer Correct ?    12 Yes 32 No

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

Answer / 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

More C Interview Questions

Difference between strcpy() and memcpy() function?

0 Answers  


. Consider the following program main() { int a[5]={1,3,6,7,0}; int *b; b=&a[2]; } The value of b[-1] is (A) 1 (B) 3 (C) -6 (D) none

9 Answers   Oracle,


What is floating point constants?

0 Answers  


Explain this code. #include <stdio.h> void f1(int *k) { *k = *k + 10; } main ( ){ int i; i = 0; printf (" The value of i before call %d \n", i); f1 (&i); printf (" The value of i after call %d \n", i); }

3 Answers   IBM,


Explain heap and queue.

0 Answers   Aricent,






what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means....

1 Answers   TCS,


Is there a way to jump out of a function or functions?

0 Answers  


what is the difference between : func (int list[], ...) or func (int *list , ....) - what is the difference if list is an array and if also if list is a pointer

2 Answers  


What is macro?

5 Answers   IBM,


Write a program for print infinite numbers

3 Answers   Wipro,


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

0 Answers  


without a terminator how can we print a message in a printf () function.

7 Answers   NIIT,


Categories