j'ai bien boss !
This commit is contained in:
		
							
								
								
									
										15
									
								
								DEV1.1/TP02:Caracteres,Reels/.nfs0000000000461e4800000017
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								DEV1.1/TP02:Caracteres,Reels/.nfs0000000000461e4800000017
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main(void) {
 | 
				
			||||||
 | 
						int n;
 | 
				
			||||||
 | 
						double x;
 | 
				
			||||||
 | 
						char c;
 | 
				
			||||||
 | 
					  printf("Veuillez saisir un reel.\n");
 | 
				
			||||||
 | 
					  n = scanf("%lf", &x);
 | 
				
			||||||
 | 
					  printf("Sa notation scientifique est : %f\n",x);
 | 
				
			||||||
 | 
					  printf("Veuillez saisir un caractere.\n");
 | 
				
			||||||
 | 
					  n = scanf("%c", &c);
 | 
				
			||||||
 | 
					  printf("J'ecris ce dernier 5 fois : %c %c %c %c %c\n",c,c,c,c,c);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										8
									
								
								DEV1.1/TP02:Caracteres,Reels/a_maj_ascii.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								DEV1.1/TP02:Caracteres,Reels/a_maj_ascii.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main() {
 | 
				
			||||||
 | 
					printf("%c\n", '\x41'); //100 0100
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										8
									
								
								DEV1.1/TP02:Caracteres,Reels/chiffre7ascii.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								DEV1.1/TP02:Caracteres,Reels/chiffre7ascii.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main() {
 | 
				
			||||||
 | 
					printf("%c\n", '\x37');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										16
									
								
								DEV1.1/TP02:Caracteres,Reels/numsecu.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								DEV1.1/TP02:Caracteres,Reels/numsecu.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main(void) {
 | 
				
			||||||
 | 
					  char m1;
 | 
				
			||||||
 | 
					  char m2;
 | 
				
			||||||
 | 
					  char a1;
 | 
				
			||||||
 | 
					  char a2;
 | 
				
			||||||
 | 
					  printf("Quel est votre numero de securite sociale ?\n");
 | 
				
			||||||
 | 
					  m1 = getchar();
 | 
				
			||||||
 | 
					  a1 = getchar();
 | 
				
			||||||
 | 
					  a2 = getchar();
 | 
				
			||||||
 | 
					  m1 = getchar();
 | 
				
			||||||
 | 
					  m2 = getchar();
 | 
				
			||||||
 | 
					  printf("Votre date de naissance est: %c%c/%c%c\n",a1,a2,m1,m2);
 | 
				
			||||||
 | 
					  return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										8
									
								
								DEV1.1/TP02:Caracteres,Reels/salut2.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								DEV1.1/TP02:Caracteres,Reels/salut2.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main() {
 | 
				
			||||||
 | 
					printf("%c%c%c%c%c %c %c%c%c%c %c%c%c%c %c%c%c%c%c%c%c%c\n",'S','a','l','u','t','a','t','o','u','s','c','e','s','t','L','a','S','a','l','l','e','.');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										15
									
								
								DEV1.1/TP02:Caracteres,Reels/telescopage.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								DEV1.1/TP02:Caracteres,Reels/telescopage.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main(void) {
 | 
				
			||||||
 | 
						int n;
 | 
				
			||||||
 | 
						double x;
 | 
				
			||||||
 | 
						char c;
 | 
				
			||||||
 | 
					  printf("Veuillez saisir un reel.\n");
 | 
				
			||||||
 | 
					  n = scanf("%lf", &x);
 | 
				
			||||||
 | 
					  printf("Sa notation scientifique est : %e\n",x);
 | 
				
			||||||
 | 
					  printf("Veuillez saisir un caractere.\n");
 | 
				
			||||||
 | 
					  n = scanf("%c", &c);
 | 
				
			||||||
 | 
					  printf("J'ecris ce dernier 5 fois : %c %c %c %c %c\n",c,c,c,c,c);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user