HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginner > problem:


50217 - Exchange the Values

Volume problems

• 50126 - The Highest Average
• 50127 - Welcome Andi - 2
• 50132 - Class Average
• 50145 - Close City
• 50164 - The roots of a quadratic eq...
• 50192 - Nr of Missing Guests
• 50193 - Passing the course
• 50194 - OSHEE Electric Bill
• 50217 - Exchange the Values
• 50218 - Say Hello
• 50219 - Win or Lose
• 50220 - Area and Perimeter Of The ...
• 50221 - Calculate the Average
• 50222 - Even or Odd
• 50223 - Average of Test Scores
• 50225 - Convert to Minutes and Sec...
• 50226 - Convert Celsius to Fahrenheit

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Exchange the Value

Write a program that asks the user to type 2 integers A and B and exchange the value of A and B.

Input: In the first line you will get 2 different integers.

Output: After you exchange the values, you will display the values in the second line with a space between them..

Sample Input1:

Sample Input2:

4 6

-5 20

Sample  Output1:

Sample  Output2:

6 4

20 -5

 

Для отправки решений необходимо выполнить вход.

www.contester.ru