Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

please help


  • Please log in to reply
1 reply to this topic

#1 godetsu

godetsu

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:03:10 PM

Posted 10 August 2014 - 09:48 PM

get the sum of first and second number then get the difference of the sum and the third number then the product of the difference and the fourth number then the quotient of the product and the fifth number.. i dont know how to run it in turbo c.


Edited by godetsu, 10 August 2014 - 09:50 PM.


BC AdBot (Login to Remove)

 


#2 YourFriend

YourFriend

  • Members
  • 30 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:localhost
  • Local time:12:10 PM

Posted 11 August 2014 - 07:54 AM

sum=x1 + x2

 

difference=sum - x3

 

product=difference * x4

 

quotiend=product / x5

 

What is the problem you are exactly facing?

You can run the loop 4 times and then put if conditions to get the desired result.

 

For Example

for(i=0;i<4;i++)

{

if(i=0)

{

sum=x1+x2;

}

......

....

....

}

like that






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users