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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain two-dimensional array.

617


Explain how do you determine whether to use a stream function or a low-level function?

616


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

1726


What does the c preprocessor do?

609


What is difference between array and pointer in c?

532






How to establish connection with oracle database software from c language?

1667


What is the use of typedef in structure in c?

534


Explain how does flowchart help in writing a program?

616


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1896


Which is an example of a structural homology?

769


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

750


Write a program to print numbers from 1 to 100 without using loop in c?

629


Explain what are the different data types in c?

745


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1832


What is variable and explain rules to declare variable in c?

547