Logo  

CS256 - Fundamentals of Structured Programming

Displaying exercises/e7/files/p1.c

#include <stdio.h>
#include <stdlib.h>

/**
 * Create a program with the following usage:
 * Usage: p1 <number> <string>
 * which prints the <string>, <number> of times with a leading numeric prefix
 * (starting at 1) padded to three spaces with a space after it.
 * If not enough parameters are provided, print the above usage and exit.
 * Use the atoi() function to convert the first parameter to a real integer
 * number.
 * Example:
 * > ./p1 3 Hello
 *   1 Hello
 *   2 Hello
 *   3 Hello
 */
int main(int argc, char *argv[])
{
  
  return 0;
}