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
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What are pointers? What are different types of pointers?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
What is the purpose of scanf() and printf() functions?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
What are comments and how do you insert it in a C program?
What are the ways to a null pointer can use in c programming language?
What is the difference between text files and binary files?
Tell me what is null pointer in c?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is assert and when would I use it?
What is the usage of the pointer in c?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
how do you programme Carrier Sense Multiple Access
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?