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 emoji p mean?

594


What are static variables in c?

624


What are the different data types in C?

723


Is null always defined as 0(zero)?

610


Explain what is the difference between the expression '++a' and 'a++'?

623






Stimulate calculator using Switch-case-default statement for two numbers

2442


What are the key features in c programming language?

607


What is data types?

632


Can one function call another?

622


Define VARIABLE?

684


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1622


How can you read a directory in a C program?

647


What do you mean by scope of a variable in c?

540


Explain how can I right-justify a string?

618


What are the advantages of external class?

589