Sorting
Lesson 11 of 32 in Coddy's Coding Problems course.
Write a program that will read three numbers and it will sort them in an ascending order and after that will output the sequence.
Challenge
MediumWrite a program that gets three natural numbers A, B and C from input and outputs the sorted sequence of those numbers.
Input
2 4 3
Output
2 3 4
Input
6 1 2
Output
1 2 6
Try it yourself
#include <stdio.h>
int main() {
// Write code here
return 0;
}
All lessons in Coding Problems
1Course Introduction
Introduction2Easy Difficulty
SumEven or OddSquare & CubeMonthsMiddle digitTriangleMathematicsSum to NSum of numbersSortingCircle