answersLogoWhite

0


Best Answer

# include<stdio.h>

main()

{

int a,b,i:

int result=0;

printf("enter two numbers to be multipied");

scanf("%d%d",&A,&B);

for(i=1;i<=b;i++)

result=result+A;

printf("%d*%d=%d\n",a,b,result);

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

#include<stdio.h>

#include<conio.h>

#include<math.h>

void main()

{

int x,y,mul;

clrscr();

printf("Enter the value of x and y\n");

scanf("%d %d",&x,&y);

a=sqrt(a);

mul=x<<a;

printf("mul=%d",mul);

getch(); (Qudrattullah Omerkhel)

}

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

//-------------This program is Created By the Robin ---------------------------

// Contact Me to Find more answer :- 9889857111-------------//

void main()

{

int a,b,c;

printf("Enter 2 numbers to multiply (smaller first): ");

scanf("%d %d",&a,&b);

c=0;

while(b!=0)

{

if(b&1!=0)c+=a;

b=b>>1;

a=a<<1;

}

printf("The product is %d",c);

}

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Here is the code...

#include<stdio.h>

void main()

{

int a,b,c;

printf("Enter 2 numbers to multiply (smaller first): ");

scanf("%d %d",&a,&b);

c=0;

while(b!=0)

{

if(b&1!=0)c+=a;

b=b>>1;

a=a<<1;

}

printf("The product is %d",c);

}

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Yes by left shifting as one of the numbers is divisible by 2.

11 * 4

int a = 11;

int b = 4 / 2;

a = (a << b);

a = 44;

There is another way. Multiplication is a quick way to to do addition.

4 * 4 = 16;

4 + 4 = 8

8 + 4 = 12

12 + 4 = 16

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

\* multiply the two numbers*/

#include<stdio.h>

#include<conio.h>

{

int a,b,c;

printf("Enter two numbers");

scanf("%d" ,&a ,&b);

c=a+b;

printf("multiplication=%d" ,c);

getch();

}

This answer is:
User Avatar

User Avatar

Wiki User

6y ago

It is not possible to do anything on a computer without using operators. Computers perform all computations using a combination of operators and operands, nothing more, nothing less.

Conforming to the text of the question and assuming an operator is an infix operator as in a*b, a C program can call a function in a language other than C with numbers to be added. That would be a C program that adds without operators.

Even better, a C program calls an assembly language routine (any assembler on any machine) which will use its own version of an addition command to accomplish the addition, without using an operator at all :)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program to multiply two numbers without using arithmetic operator and using recursive function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is precedence between relational operator and arithmetic operator?

Arithmetic operators (+, -, *, /, % ) have greater precedence over relational operators (&lt;, &gt;, &lt;=, &gt;=, ==, !=) in C language.


Why a friend function cannot be used to overload the assignment operator?

Assignment(=) operator is a special operator that will be provided by the constructor to the class when programmer has not provided(overloaded) as member of the class.(like copy constructor). When programmer is overloading = operator using friend function, two = operations will exists: 1) compiler is providing = operator 2) programmer is providing(overloading) = operator by friend function. Then simply ambiguity will be created and compiler will gives error. Its compilation error.


C program to implement arithmetic assignment operator?

y=2x2+3x+1


How operator overloading differ from function overloading?

Function overloading is multiple definition with different signatures(the parameters should be different) for the same function. The parameter list have to be different in each definition. The compiler will not accept if the return type alone is changed. Operator overloading is defining a function for a particular operator. The operator loading function can not be overloaded through function overloading.


What is difference between conditional operator and bitwise operator?

A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.

Related questions

What is an arithmetic operator in c?

+


Arithmetic operator that divides contents of a cell?

The arithmetic operator that divides contents of a cell is the front slash. =A3/B3


What is an arithmetic operator that multiplies?

Multiplication


Arithmetic operator that multiplies by 0.01?

percentage


What arithmetic operator multiplies by 0.01?

percentage


What is an arithmetic operator in c program?

An arithmetic operator is any of the "atomic" operators to do the following math operations: + addition - subtraction / division * multiplication % modulus division


What does the arithmetic operator do in Excel?

The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)The following are valid Excel operations for arithmetic in Excel:+ (plus)- (minus)/ (divide)* (multiply)^ (power of)


Arithmetic operator that makes a number negative?

Negation


In excel what is the arithmetic operator that multiplies by 0.01?

percent


What arithmetic operator performs division?

forward slash /


What is an arithmetic operator that makes a number negative?

A minus sign. (-)


What is the arithmetic operator that adds contents to cells?

the plus sign (+)