Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 sizeof int return?

1025


What is hash table in c?

972


Tell me when is a void pointer used?

1103


What is meant by preprocessor in c?

948


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1325


Explain the difference between the local variable and global variable in c?

1025


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

997


How is actual parameter different from the formal parameter?

973


How can a process change an environment variable in its caller?

1128


can we implement multi-threads in c.

1087


write a program to print data of 5 five students with structures?

2005


Explain logical errors? Compare with syntax errors.

1011


Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

3051


If I have a char * variable pointing to the name of a function ..

1113


Why doesnt the call scanf work?

1138