forked from menault/TD2_DEV51_Qualite_Algo
		
	Téléverser les fichiers vers "/"
This commit is contained in:
		
							
								
								
									
										25
									
								
								exemple_1.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								exemple_1.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
#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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user