1#include <stdio.h>
2#include <stdlib.h>
3
4int main(int argc, char *argv[])
5{
6 int rings;
7 if(argc != 2) {
8 printf("Usage: %s number-of-rings\n",argv[0]);
9 return 1;
10 }
11
12 rings = atoi(argv[1]);
13 printf("Using number-of-rings = %d\n", rings);
14...
15
16 return 0;
17}
18