Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Solution needs in C programming: If N is added to twice a number, the sum will be S . What is the number? Input

1) Solution needs in C programming:

If N is added to twice a number, the sum will be S. What is the number?

Input Format

The input contains two integer numbers N and S.

Note: N and S contain even number only.

Constraints

1. 0 < N <= 200

2. 0 < S <=500

Output Format

Output will show the one integer numbers in a separate line.

Sample Input 0

8 20 

Sample Output 0

6 

Explanation 0

if N = 8 and S = 20 then Twin Number--> 6. 8+6+6 = 20 

Sample Input 1

200 500 

Sample Output 1

150

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions