update
This commit is contained in:
27
DEV.1.1/CM3/ex3.c
Normal file
27
DEV.1.1/CM3/ex3.c
Normal file
@@ -0,0 +1,27 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "queue.h"
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
int i, ignores, somme;
|
||||
|
||||
for(i=0;i<=argc;i++){
|
||||
if(argv[i]<10){
|
||||
|
||||
}else if(argv[i]>="a" || argv[i]<="z"){
|
||||
while(argv[i]!=" "){
|
||||
ignores = ignores + argv[i];
|
||||
}
|
||||
ignores = ignores + " ";
|
||||
|
||||
}else if(argv[i]<0 || argv[i]>0){
|
||||
while(argv[i]!=" "){
|
||||
somme = somme + argv[i];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
printf("somme : %d\n", somme);
|
||||
printf("ignorés : %s\n", ignores)
|
||||
}
|
Reference in New Issue
Block a user