You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
342 B
22 lines
342 B
6 months ago
|
#include <stdio.h>
|
||
|
|
||
|
int main(int argc, char* argv[])
|
||
|
{
|
||
|
int i = 0;
|
||
|
|
||
|
if (argc == 1) {
|
||
|
printf("You no argument.\n");
|
||
|
} else if (argc > 1 && argc < 4) {
|
||
|
printf("Here's your arguments:\n");
|
||
|
|
||
|
for (i = 0; i < argc; i++) {
|
||
|
printf("%s ", argv[i]);
|
||
|
}
|
||
|
printf("\n");
|
||
|
} else {
|
||
|
printf("You have too many arguments.\n");
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|