Menu
Coddy logo textTech

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 icon

Challenge

Medium

Write 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