[Homework] C# Basics Conditional Statements Problem 1 - Integer or floating - point
В условието на първа задача от домашното за Conditional Statements се казва: две променливи integer, а в примера на третия ред има числа с плаваща запетая. Какви променливи да използваме?
Ето условието:
Problem 1.Exchange If Greater
Write an if-statement that takes two integer variables a and b and exchanges their values if the first one is greater than the second one. As a result print the values a and b, separated by a space. Examples:
| a | b | result | 
| 5 | 2 | 2 5 | 
| 3 | 4 | 3 4 | 
| 5.5 | 4.5 | 4.5 5.5 |