#include <stdio.h>
#include <stdlib.h>
int
main (int argc, char *argv[])
{
int a;
double x, sum;
if (argc == 3)
{
printf("The arguments supplied are %s and %s.\n", argv[1], argv[2]);
a = atoi (argv[1]);
x = atof (argv[2]);
sum = a + x;
printf ("The sum is: %f\n", sum);
}
else
if (argc > 3)
printf ("ERROR: Too many arguments supplied.\n");
else
printf ("ERROR: One argument expected.\n");
return (0);
}