#include <stdio.h>

int main(int argc, char **argv) {
  int times,i;
  int a,b,c;
  char op;

  if (argc<3) {
	printf("Usage: ops operation number_of_times\n");
	printf("   valid operations: + - \n");
	exit(1);
  }

  op = argv[1][0];
  times = atoi(argv[2]);

  switch(op) {
  case '+':
	for (i=0;i<times;i++)  a = b + c; break;
  case '-':
	for (i=0;i<times;i++)  a = b - c; break;
  default:
	printf("invalid operation. Must be + or - \n");
  }
  return(1);
}

  

