woaw
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
int main(void) {
|
||||||
|
printf("%c",55);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
printf("Hello World ! \n");
|
printf("%c","Hello World !");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
printf("%c \n",55);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
printf("%.15f\n", 12345.678910111213);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ??????????
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
int main(void) {
|
||||||
|
printf("Unicode : %c%c\n", '\xC3', '\xAE');
|
||||||
|
printf("Latin 1 : %c\n", '\xEE');
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
char num;
|
||||||
|
printf("%s","Entrez votre numero de securite sociale: ");
|
||||||
|
num = getchar();
|
||||||
|
int annee1=getchar();
|
||||||
|
int annee2=getchar();
|
||||||
|
int mois1=getchar();
|
||||||
|
int mois2=getchar();
|
||||||
|
printf(" %c%c/%c%c \n",annee1,annee2,mois1,mois2);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
printf("%f\n", +1.0/0.0);
|
||||||
|
printf("%f\n", -1.0/0.0);
|
||||||
|
printf("%f\n", -0.0/0.0);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main(void){
|
||||||
|
double n=0;
|
||||||
|
int annee=1;
|
||||||
|
printf("saisir la somme a investir: ");
|
||||||
|
scanf("lf",&n);
|
||||||
|
n= n + (n*0.04);
|
||||||
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
||||||
|
annee+=1;
|
||||||
|
n= n + (n*0.04);
|
||||||
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
||||||
|
annee+=1;
|
||||||
|
n= n + (n*0.04);
|
||||||
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
||||||
|
annee+=1;
|
||||||
|
n= n + (n*0.04);
|
||||||
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
||||||
|
annee+=1;
|
||||||
|
n= n + (n*0.04);
|
||||||
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
||||||
|
annee+=1;
|
||||||
|
n= n + (n*0.04);
|
||||||
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
||||||
|
annee+=1;
|
||||||
|
n= n + (n*0.04);
|
||||||
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
||||||
|
annee+=1;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
printf("%c \n",65);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
printf("%f\n", 5.0+2.5);
|
||||||
|
printf("%f\n", 5.0-2.5);
|
||||||
|
printf("%f\n", 5.0*2.5);
|
||||||
|
printf("%f\n", 5.0/2.5);
|
||||||
|
// % marche pas pour les double ou floatprintf("%f\n", 5.0%2.5);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main(void){
|
||||||
|
double n=0;
|
||||||
|
printf("saisir un reel: ");
|
||||||
|
scanf("%lf",&n);
|
||||||
|
printf("%.10e \n",n);
|
||||||
|
char lettre;
|
||||||
|
printf("saisir un charactere: ");
|
||||||
|
lettre = getchar();
|
||||||
|
lettre = getchar();
|
||||||
|
printf("%c%c%c%c%c",lettre,lettre,lettre,lettre,lettre);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user