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
What are global variables?
What does sizeof return c?
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
How do I get an accurate error status return from system on ms-dos?
Is c compiled or interpreted?
What does stand for?
What is the use of bitwise operator?
Explain what is the benefit of using an enum rather than a #define constant?
Why is structure important for a child?
Explain what does a function declared as pascal do differently?
What does c mean in standard form?
Are bit fields portable?
Are pointers integer?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is a void * in c?