Numbers in an interval P97156


Statement
 

pdf   zip

thehtml

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

Input

Input consists of two natural numbers a and b.

Output

Print a line with a,a+1,…,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 PHP Python Rust