TD2_DEV51_Qualite_Algo/exemple_1.c

26 lines
241 B
C
Raw Permalink Normal View History

2024-09-16 20:36:19 +02:00
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv)
{
int a = 12;
int b = 34;
int c = 56;
int d = 29;
if(a < 10){
b = a+c;
}
else{
c = a*a;
if(b > c){
b++;
}
else{
a = b + c;
}
}
return a;
}