Write a program that accepts up to six arguments at the command line prompt. The program should
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that accepts up to six arguments at the command line prompt. The program should print the first character of any odd-numbered arguments (numbers 0, 2, and 4), and the second character of any even-numbered arguments (numbers 1, 3, and 5). The characters printed should be separated by spaces. The program should inform the user of the correct program usage if fewer than two or more than six arguments are provided. Assume each argument contains at least two characters.
For example: Given arguments: myprog arg1 200 list all arg5 Returns: m r 2 i a r NOTE: Implement the code in c-language.
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: