APL/APL1.1/TP14/initiales.c

15 lines
282 B
C
Raw Normal View History

2021-10-12 16:14:21 +02:00
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(int argc, char * argv[]) {
char initiales[15];
for (int i = 1; i < argc; i++) initiales[i-1] = argv[i][0];
initiales[strlen(initiales)-1] = '\0';
printf("Initiales : %s\n", initiales);
return EXIT_SUCCESS;
}