From 4506759c1a8f4ef1333cc9664fa6d14bf281c746 Mon Sep 17 00:00:00 2001 From: Jacques Date: Tue, 9 Nov 2021 16:39:17 +0100 Subject: [PATCH] bonjour --- APL1.1/CMB1/APL | 1 + APL1.1/CMB1/DistributionTO | Bin 0 -> 16336 bytes APL1.1/CMB1/DistributionTO.c | 63 +++++++++++++++++++++++++++++++++++ APL1.1/CMB1/Historigramme | Bin 0 -> 16336 bytes APL1.1/CMB1/Historigramme.c | 27 +++++++++++++++ APL1.1/CMB1/historigramme.c | 3 ++ APL1.1/CMB1/parite | Bin 0 -> 16200 bytes APL1.1/CMB1/parité.c | 22 ++++++++++++ APL1.1/CMB1/rapace | Bin 0 -> 16080 bytes APL1.1/CMB1/rapace.c | 9 +++++ APL1.1/CMB1/triage.c | 5 +++ 11 files changed, 130 insertions(+) create mode 160000 APL1.1/CMB1/APL create mode 100755 APL1.1/CMB1/DistributionTO create mode 100644 APL1.1/CMB1/DistributionTO.c create mode 100755 APL1.1/CMB1/Historigramme create mode 100644 APL1.1/CMB1/Historigramme.c create mode 100644 APL1.1/CMB1/historigramme.c create mode 100755 APL1.1/CMB1/parite create mode 100644 APL1.1/CMB1/parité.c create mode 100755 APL1.1/CMB1/rapace create mode 100644 APL1.1/CMB1/rapace.c create mode 100644 APL1.1/CMB1/triage.c diff --git a/APL1.1/CMB1/APL b/APL1.1/CMB1/APL new file mode 160000 index 0000000..81df25b --- /dev/null +++ b/APL1.1/CMB1/APL @@ -0,0 +1 @@ +Subproject commit 81df25baf0d72d490ab598dea728ea8606f5d537 diff --git a/APL1.1/CMB1/DistributionTO b/APL1.1/CMB1/DistributionTO new file mode 100755 index 0000000000000000000000000000000000000000..4c825f6928dc54d6ffb135e3e924dbb8f5efb54b GIT binary patch literal 16336 zcmeHOeQX@X6`%D7ae$mnaHt`KEGa<_tuGEFt|4`~bG*(PImAtDKFY^teRqye+=qL& zM;!z-(vhfF!=mG(t@Z{F{H%*@-_^-Ol=t6Fb&m7)lyYVieu(nN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ztLua5)eos3F?mHlk`#Tnf z^vTbFp8-Dueg^yu_!;ms;Ag5st&#*j|@Y>j1r}i!6m>e*{@gtZw9F7uqCV9s{MD09QW>i(g8-N$8<+EMih_m40Ut0kG?gIEz3*f&19NXh<=Sjd-SAAT31MrKgngl;rjGsmvlSxiB zq^O2GS89Kw!~;U5JjclX55OB>Jnsk*Km-mJ4*IL4_f;ec;{j2Y2fGPw&}T#|t;DKqVYt^b+$V9tuCQ~g_ItGl;_w`hiTbC&`8 z{>we0!sxpF=J1xDP30PS=l~#i!5W%wI1%)&ZNk{xyR|diYi#ZA-mdi<{o&4D4Wr7V z3XyD1ww(_)g!q`kzdf7~i<*`RVag9kl>FDz5s4BY1A5O#lxgL;i!uaq4V5@2AfT%9 z;}AwPn>L2ws0JRD=-CQZ(Rj+pWn<3S4Nss_Z!!H4YcQLoxbmEaVZhM~PB@;)sCdw# z{J2M14I-G`m9)%3;8w=r!(4)+BC*Vf2+BdZGnEUDWYQzCjJ3-J4d&u-vM3%UDBRi8 zg2Oh5=EG)oSOlZHQc#7%t&F3&HFUI~vn z{H<`PiT>_0=XoWmr7f3{e;O{F%dvku`7;lJ&P_beW2_AdZvRp8XO7<`+{Eu)#(JRO z_UCyEbCnH=d;Rg8&igPob^6165Oi*$a3$!=P{O${`}2I4IoHGOXFKK(fl8E!ViBQ>AE+c;oF1No* ze#}SQ#!&Wz7eDa$^EqDTwKSeN4EwYEV~;=2kC^kiknO$W_h;l^%D+mM#9K*Z#`$CU z87N@?*}qkFG|cgvpqsq)zX(dV|FG&=*5&+~CU4?K;X1H$o-#D07qPXmS~?9b=&PSOOf8J%3j z{>(oBo!ei8$e3=N?()SV`!TNqXSYAkb9M6Pc5)c@E6L!D7`LD2jkl4%*B +#include +#include +#define ETAGES 4 +#define NBRBILLES 10 + +int main (void) { + + int i,y,z,compteur=0,direction,trou,comptg,comptd; + int resultats[NBRBILLES]; + + srand(time(NULL)); + + for(y=0; yIw(0O%x|nX2(rs~)E)6MFRy&E)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W{k!UeKR;J)fThJ^V&Ke+u*r=mpRy z_!}mQ?U8-LHd1ZduxdrcB)q00j=$YELJWLa7M&}qQQZj_w)4%u=JN>z9MxS8=ZC6p z`DDcrv2*>7yY9Vn6T-+n2-h6&e~*CIQGLwbQMugyJhTAe0D2UzQ_!~%)^|CozhLin zI6q(JbGRm!`5bkhEAMnP9$T(BTE|xGa(H5nR!@pYxY`}gc1Lx)qeA{p_AJn6 zAdd0(DGX_el>sXQRtBsLSQ)S~U}eC{fRzC&16Bs!jTzv5eY}s4_sZd3K@{BIDMh}e z3E1DQOO7^8-o`fV3*109yoyO#Pn!1);`THB%IdW@^>Y?*8{Adq`7lTRyiZt~@bR`RtS;=|XS@m$ zViRz8c^J|4Mz|sE_>?i_c{BL0f&9$UbB3P_+az8b1FderT{pwx=Mr}c#Zz1v0=!x{ z3*Q&lHUPfHUM2YX#&`sAHVpcSCGf8~Are#>BL5dbSHpb%n1=vT7a%@=pwR7gL%VG2|jEoL8L4Wv>OS02+)RXBOU3CAND zCC^zDpY|wfLAX<+QO!R9T1)DBm`iX{B$P}Dx15thv9vppj3+`#ZPWk_q{DEqC>$in z+umJ|v(}C7!~WE;a0f?Y(1fnFq+auID47b!V?~Avb;(e~j|3_uBARf^fxETP2$XTQ zLS0;bhwjiY&ClT=aM{us`b5C0u*cff^fIp((#pS1_-jKb?Y##*3Yj4B|Ki#@vGkzH=aPDyXydLNCz_U0w5S;%g%;WFzDq!fsd_I>qLkqY% zBpHPHtlxqOA`*C!}t!${o&`@O2D}9P%Ow4P2998IJe7=xO^_f P-}V9B<5m;FWQu +#include +#include +#define TAILLETAB 20 + +int main (void){ + + int tab[TAILLETAB]; + int i,r; + + srand(time(NULL)); + +/* ajoute TAILLETAB valeurs dans un tableau entre 0 et 20 */ + + for(i=0; i +#include +int char = diff --git a/APL1.1/CMB1/parite b/APL1.1/CMB1/parite new file mode 100755 index 0000000000000000000000000000000000000000..bc9ba01266dda3498e26cf667f8e9c0d66dee99f GIT binary patch liter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%<`SrPMe-QujdH!SS-%#QoZty ze!eN=tPUmmOye4j9X5qV4wInm=!ya7DsN2Si1`xxxf`Y8;bD4=(B2*DccN3VUaut zx@`;yD{0w4MALT0&cX_ssF+_@uiFVdiYx0g;1Emc1MyU!5!YjODxJ}d?68QY5<_v* zHe>LxDQbbs{Vm-{r;QOE{-2p15&dZ+Vd}ALA~6CkE=k9p6qpVfY0I8EBfHz)71`US zx9w}yVM%|XX-w#?hxSGGcC-{~Qn=GW<$Vj=Y0pER!0iinYsJJvKDOWv0_9;nmcN7 zM269P(8vsmaBL(AO*m+$9nI&>bO!#}T_EV7OPg^69jG=Gw?$ZHBy5|*P{)x7x|FL7yw}9re*^q+j>`T#k7c|&+O0hNeehUW%lQJ zaUMbEE*QgIJ_iEMIoY4*nT-55ko(Vej9&tOoWrur^H@fe8uRv_XfXj5%qjcxJeqNm z47q*p`G1rAo5_yn<&2ukALs5~|L+2aIpO&DCsr0heqSM0_Lb|1FT&yWSICc1MI%@7 zgcsijo!h^c3>bSjF%*OSIphyL{ydLi_>>-#N5T(KF&As{JH&U#j$4O@$azn*N^32K?Rnc%6kAgo`>?jO>ci$W_$~L%3c0E zKcB6|Xm_^9evI#f4UQdp?BwUiybpI8PYw!>e=O|B*YO5$Xu|%ykM0Uh%xcidRoI{L zW6-(%g-XVC4iXSK-#+^X!P)K4^VB+W +#include +int main(void){ + int saisie1, saisie2; + + printf("Premier entier : "); + scanf("%d", &saisie1); + + printf("Deuxieme entier : "); + scanf("%d", &saisie2); + + if ((saisie1%2)!=0 && (saisie2%2)!=0){ + printf("La multiplication de %d et %d donne un résultat impair.\n", saisie1, saisie2); + return EXIT_SUCCESS; + } + + printf("La multiplication de %d et %d donne un résultat pair.\n", saisie1, saisie2); + return EXIT_SUCCESS; +} + + + diff --git a/APL1.1/CMB1/rapace b/APL1.1/CMB1/rapace new file mode 100755 index 0000000000000000000000000000000000000000..1d9a78e6b01b7e7a560da3fb94895260302951c9 GIT binary patch literal 16080 zcmeHOY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*FcZ< zJU^Lrh3pTKfBC;LD7*@KY^T@$2Iv(gyU+&xZkJrnn&YXCY|cumao9=^f?=5xB9%>9 zpor(Kf>neaGI6oK``)lJMjZFw<97Z;&X`E&#?7>muyXl=VHT%FJeQeDC#_@xZXQ)F z@Bl!{F!OnH#zW1S%A2=?I;n=ahNX$4kG<0Hc)EJHQ#Rk!(IA|587Lp0mGTF!aA%{vM1C5;H3t(D#mcd9Aa>k^YP2f3)=rOQLq_Re_ zkc957w+urB@_3;@ZsbV{!+>KF92`79QT0$n<$;WfmI<{mld;TkKr8RyBW%*>(B&Ap+fQmS4;hRp^LahXxIl(nzqkM2Abua&tj*}EE@FG{{QVK}IsQT+OG2K%q<%YLlfrn`MM=qNVOx$m6*@?E|j_XLL=i&2Ne<-n8z3dvYW4Hj-^6; zZl{-DmVu1Exc$6->m)wc!}eI0J2g=KWL_>}esfvlWSH+po_lUnog6Mv!*Cwsvl_RD l?+f^x%x!n`6`Hu)JkGgZw#8*^HU1&|VS;qOhu{&#zX5{4C5r$6 literal 0 HcmV?d00001 diff --git a/APL1.1/CMB1/rapace.c b/APL1.1/CMB1/rapace.c new file mode 100644 index 0000000..d15f76f --- /dev/null +++ b/APL1.1/CMB1/rapace.c @@ -0,0 +1,9 @@ +#include +#include +int main(void){ + printf(" (o,o)\n"); + printf(" (__(\\\n"); + printf(" -\"-\"-\n"); + return EXIT_SUCCESS; +} +/*avec ce programme, je pense que cela affichera le programme demande. je n'ai pas réussi à le compiler avec gcc rapace.c rapace*/ diff --git a/APL1.1/CMB1/triage.c b/APL1.1/CMB1/triage.c new file mode 100644 index 0000000..fe27d3f --- /dev/null +++ b/APL1.1/CMB1/triage.c @@ -0,0 +1,5 @@ +#include +#include +int main(void){ + int main(char){ + printf("%2