Jump to content

mrkinney

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by mrkinney

  1. I am teaching a course on the ACSL competition to middle school students and my programming skills are little rusty. In the next competition we have a programming challenge where they need to create a program that you can input a string and several substring parameters. The problem is that they need to be able to input a negative number and have it produce the desired result. For example:

     

    with the string "Hello world!"

    input 1: 0, -1 output 1: Hello world

    input 2: 0,-5 output 2: Hello w

    input 3: -4,0 output 3: rld!

     

    I am at a little bit of a loss as how to go about getting the desired output.

×
×
  • Create New...