write a program for 7*8 = 56 ? without using * multiply
operator ? output = 56

Answer Posted / rama krishna sidhartha

Here is the logic.
void func()
{
int i;
int result = 0;
for(i = 0; i < 8; i++)
{
result = result + 7;
}
printf("%d",result);
}

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does %c mean in c?

837


Write a program of prime number using recursion.

813


please send me the code for multiplying sparse matrix using c

1922


What is wrong with this program statement? void = 10;

1014


hi any body pls give me company name interview conduct "c" language only

1879


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

862


What is c definition?

951


What is strcmp in c?

747


What is the sizeof () operator?

786


What is pointer & why it is used?

794


How many identifiers are there in c?

757


What are extern variables in c?

728


How is a structure member accessed?

798


What is 02d in c?

830


What are the different types of C instructions?

957