All pastes #329047 Raw Edit

Quelqu'un

public c v1 · immutable
#329047 ·published 2007-01-26 10:56 UTC
rendered paste body
#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>int main(ac,  **av){  int conv_av1 = atoi(av[1]);  int conv_av2 = atoi(av[2]);  int resultat = 0;  if ( av[2][0] == 43 )    {      resultat = conv_av1 + conv_av2;      printf("le resultat est %d \n", resultat);    }  else if ( av[2][0] == 45 )    {      resultat = conv_av1 - conv_av2;      printf("le resultat est %d \n", resultat);    }  else if ( av[2][0] == 42 )    {      resultat = conv_av1 * conv_av2;      printf("le resultat est %d \n", resultat);    }  else if ( av[2][0] == 47 )    {      resultat = conv_av1 / conv_av2;      printf("le resultat est %d \n", resultat);    }  else if ( !isdigit (conv_av1) )    {      puts("le monsieur demande un nomnbre !\n");      return 0;    }  else if ( !isdigit (conv_av2) )    {      puts("un NOMBRE bordel \n");      return 0;    }  else if ( av[2][0] > 47 )    {      puts("essayer n'importe quoi c'est mal\n");      return 0;    }  else if ( av[2][0] < 42 )    {      puts("bon arrete hein c'est mal\n");      return 0;    }  else if ( av[2][0] == 44 )    {      puts("non c'est mal les failles\n");      return 0;    }  else if ( av[2][0] == 46 )    {      puts("ah non toujours pas ha ha\n");      return 0;    }  else    {      puts("blabla gnagna BoOoUuU\n");    }  return 0;}