Numbers in an interval P97156


Statement
 

pdf   zip

Write a program that reads two numbers aa and bb, and prints all numbers between aa and bb.

Input

Input consists of two natural numbers aa and bb.

Output

Print a line with a,a+1,,b1,ba,a+1,\dots,b-1,b. Separate the numbers with commas.

Public test cases
  • Input

    15 21
    

    Output

    15,16,17,18,19,20,21
    
  • Input

    20 10
    

    Output

    
            
                                
  • Input

    7 7
    

    Output

    7
    
  • Information
    Author
    Jordi Petit
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Pascal Python
    User solutions
    C C++ Haskell Java JavaScript PHP Python Rust Zig