From 27f78207732b6e587b4cf24b50c61c90e5280326 Mon Sep 17 00:00:00 2001 From: Vieira Date: Tue, 16 Nov 2021 14:34:07 +0100 Subject: [PATCH] Controle Machine --- APL1.1/CM1/Fleur | Bin 0 -> 16136 bytes APL1.1/CM1/Fleur.c | 14 ++++++++++++++ APL1.1/CM1/Flopée | Bin 0 -> 16088 bytes APL1.1/CM1/Flopée.c | 10 ++++++++++ APL1.1/CM1/Format | Bin 0 -> 16088 bytes APL1.1/CM1/Format.c | 16 ++++++++++++++++ APL1.1/CM1/Foulées | Bin 0 -> 16256 bytes APL1.1/CM1/Foulées.c | 35 +++++++++++++++++++++++++++++++++++ 8 files changed, 75 insertions(+) create mode 100755 APL1.1/CM1/Fleur create mode 100644 APL1.1/CM1/Fleur.c create mode 100755 APL1.1/CM1/Flopée create mode 100644 APL1.1/CM1/Flopée.c create mode 100755 APL1.1/CM1/Format create mode 100644 APL1.1/CM1/Format.c create mode 100755 APL1.1/CM1/Foulées create mode 100644 APL1.1/CM1/Foulées.c diff --git a/APL1.1/CM1/Fleur b/APL1.1/CM1/Fleur new file mode 100755 index 0000000000000000000000000000000000000000..2ceab37a52b7ec9d697f960e503fd96feaef624c GIT binary patch literal 16136 zcmeHOZ)_Y#6`woDjnmd=C$-BpA;}UFaSr(Mr-^Y%-R${a_Ru9Ui9-V8fbPIof=NPpDF;l=oF3c zyH2bXH-NlMac;Zr0<^m2Lbw_mh_3@gyC_y_;5%JfFmi;5Xm`CbfB`{a6m%YFSC0)O z`_ZB}8M(dEpN7UzH1%6S0~Me!dhIZj`F7PT=DVtKfciU3$aW~A-6Gj7k{#n5^~cEh z#GK&KN%{1n4sBR;^(%zmZj$W$*h~71*awz_FWTwhF5jAximYr1Xj{+00PKjxE`Adp46RO}0;VcC>fwh!^wm?W$vpYbzW$ zruOVRB*G`eEOKlg5}_(NOfsmbg1RkmVA|2Xc)IzKum1FVV*9$qOTTzD^Zmo6E5Ak^ zJP-7VI#`gygA2Ct!Q8)sy`ZGk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wxC0w2bwh%e7;fnNpr8KCC~-}mjnYt=54^hL!-MNF@5 zOe#Os97-PrzF9;o*NZjYgZkm7%JYkP^E!U)>+lbfe}6n*172gN9{djQE5lL2_X#&W zfjlOMjOei^egZt^XO7l|TV(Jvz-AbSx=sYaS4f}t=WHSVIp9&B$1Pjo${X~bB>$(V z;U(ZPPQU(NfY;dAgDc^Iy1^q?s^(CpJ(stw_%QqjAqdhoM@1%=v4I#a*hRYpD`tkp z((-$0kIP|PfL{cIbY6~T^FwAg^3OUChfdGndA#56S(YmCod3sc69&F9nN919_-e zBsXevg_N*!g7bx2Dr)YNsNSPd6`6<^r^an_2+%ILIL0;D-(eLdL|hG}(OfA$QOHkN z1$)Xv4V5ymA19M0D$$*6$H5jy^)a(JCgSO-9CYELU2t1IVHJv*e6C86&{nXrCK^y} zB5RAdI`Oz|O+p<98MNiqRft<-G_1zbV9Szg;f^oYg6rVe9M23xuX*qVKXKK8>kJYr z;xNp|Vf0pRr2nph^D($};Ti0fDE&QUcm@uyy+(G7+&|m++>3Ae?D_92V?8H^9I!q6d(>yo?@f&SKE?X}@%vq} zuXLl4CgCm;8T|H7Km(pX+uy0VnvD1j&0GBTKZZuH{ePd zG`!4-TKH51vIVd>(v9KLq zN1X4X3fuF3y9+eIilLFGus!1&(B`!lIw{k@`)BrHF!tK>d^1M&94Cjs{Z?c!Mvmj> zd0i*j`}MIeZ)v3dNxjm<_B4I3@NDlz9(xrfs0@(91quwG!}xB;@$mC=1#lcYR4YZN bf%`t6bMBWFae7 +#include + +int main (void) { + printf (" _\n"); + printf (" _( )_\n"); + printf (" (_(%)_)\n"); + printf (" /(_)\n"); + printf ("__ | \n"); + printf ("\\_\\|\n"); + printf (" |\n"); + printf (" |\n"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/APL1.1/CM1/Flopée b/APL1.1/CM1/Flopée new file mode 100755 index 0000000000000000000000000000000000000000..37bec62b5000d9eb6e21f63871585c627f171cca GIT binary patch literal 16088 zcmeHOeQX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V;|9qCk-TpZ6am~nlURN?cLiJ)FG0x2A^<4^d*k$JPI+gJplsOan zaHe}ez%?NAdELhdn*?Rz_Ol)115k=5Wd z_$nDN{=hY0%xAaXbn$te!N~7NZ10}G-zPrDUnpcr$nhfWoBD6B|2D?2j(LRm4b7R{ z_2YUFyU6vcifzrfWQ*lrcYA&bB{)avwlA+|`5dL&o@K_Tf!pBV^ZI$U9h8vR&XzW0 z);|vgICr>yUcd6W*k$Y-B%J@4n8)MzGU(8R`Fy@^i566?NOC0RGrk68PQFmdxYI_3 zL +#include +int main(void){ + int i; + int j = i*i*i + for (i=0;i<;i++){ + printf("%d ",i); +} +return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/APL1.1/CM1/Format b/APL1.1/CM1/Format new file mode 100755 index 0000000000000000000000000000000000000000..c51848c50e3e04290f1f46aaea7c12f273d450c3 GIT binary patch literal 16088 zcmeHOYit}>6~4QU6Q_-LH)&F~c}^jzoFZ?WmvJa2v$oe6SDQx@n^M|zH1@9Tt@dGd zXNz5-62&3P$}z2w5Jf5oeiaE20)7AmfrFzw;7`J%N~ut-s8wAaty??DrAdZ!?wqrp zovb5XLITZ=cE5Wb-?{gmxwF2Lx%YFic&Fdz6I^P<#|27i$kwQ2_~b{Z0-%Z(Q4il6 z#RjnyFMfn+y+ ziTcUN_Hug)lA$Q_yNnI!0EN-X!>&v>O0$@5twfF5J4DDl6p=Siym{g=PEmV|oKMUN zep)D>ZdAdBMU~$|xOv0Gb7KejGh!Q9j=XLr{+0F)5pTUB!w5I-vekl-+j|IjbZN=s z_Q03EzOP1yCQ{LWQS}R`_%*=oKyP_ z^a%ekF@ZYf`-D%*%Rz_5PcqxlcQt%4?Z|)s6p2(ceocP@%m(d5u zfgJR~f;#+gK^uQq_mALSa8jx`VysnF^dDG6|0w8{D*jI_qQ`mn!7Bb@D4)uj{X*CK zh7G+xl{M0-r;;GTb?DOzrja-GjFHL;l<_h&i+%B~wsw6-WJhGT(7U?#>xpDOIgl!t z$$a^6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{;=Ttf%V@)Jtl!j^s^>j1U=>DZGB*Unr%V_@fWz4LH%e@u@Z=+I%;f2C(a z=pBz7i0F$L#qQVCK;+qxQYaz)U6&?pRwNMa-lP1tDWZOfC%d?A&~RtP%S z^2xM;1gZ_CO%ag;kC@3}sNVsBu5DUH{ zvH?37BvwRVT4!LkI&Z3fqmJt6%8t|NX3KF%{8EyQP3(aBNd zBE}&%L*2wWzj)ZRh!=V2wtdV&9yl!OV@$*?0cmECG zBAysl*YCbf%w#5^;f*LNw<;gFfn>r}=QU~?9X;Vhp90oQ=c=XD<=?8cLY`_F!i zPlFZLlq~bQvW&!c_n*{a94eSo=JUFiae^GVefRjkO#C+TlLwQqP6W;qinx|`^S=Q) z%n8TGKaH{w^78{}Z<#;OgTcvHh*w4?61u{R7hHUm92jGq7#E+ze#gb#Gbo;Z+_$qLN4nD7+XBt5Xh5c-4L1z7*z<_gy+voKwpNpNs!9l_KkA-w&Q{}p4F51ex!Xl>iQ?}RUR}Qc literal 0 HcmV?d00001 diff --git a/APL1.1/CM1/Format.c b/APL1.1/CM1/Format.c new file mode 100644 index 0000000..d0d8dbb --- /dev/null +++ b/APL1.1/CM1/Format.c @@ -0,0 +1,16 @@ +#include +#include + +int main(void) { + unsigned int a = 65U; + int b = 65; + float c = 65.00; + signed char d = 65; + printf("%u\n", a); + printf("%hhd\n", d); + printf("%.0f\n", c); + printf("%s\n", b); + printf("%.0f\n", c); + + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/APL1.1/CM1/Foulées b/APL1.1/CM1/Foulées new file mode 100755 index 0000000000000000000000000000000000000000..8447ac6c4ba8d91212e3a772454a9e78462fe424 GIT binary patch literal 16256 zcmeHOeQX@X6`woXi4&6Z0s#@g_P*pXlsFb#%LTZtmnkEAE4~I%96jfMhP%kB=2Tj1VCENFA z-#hOuHlnRm33bQX`_22kkC}ZtyEp5bc`Vk`<@fmnml|=mKxrswGZ9v_aYcxTXcLR! z^CoelmnrUk=nO@XpA`(!`7t{EFgK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I(#zYqBL zU@ph~=lLxopFi(?ara*bf1KO0KhJ*|%hWEOBj%a?c^;Ys4o{i=c|Og^^Jg%T1!FkN zLm=Q>mHl~s%Ekuh z&Gu84*L_AKhJL%`8|&9-Q)M?qGW^A*|ugp=X8d;yZzq*2Wv{@J%FY>Z{_`-ZhMv)-vFNmhd(_ci$xW&dc z5*gT!(GSi}f1ba#kw5p-?O&0>8Dnw(c|NF;Kexm7*p{;_ruNCaqGErV?pApAcOs9y ziV;-yQ$U3V96pEf9g_RQ&rf`>=e|R=QV!F=jk|(#yKIQl<=OoIh+j-lu5~%MMDZ^z C1uqT& literal 0 HcmV?d00001 diff --git a/APL1.1/CM1/Foulées.c b/APL1.1/CM1/Foulées.c new file mode 100644 index 0000000..17ddf66 --- /dev/null +++ b/APL1.1/CM1/Foulées.c @@ -0,0 +1,35 @@ +#include +#include + +int main (void){ + int distance,tour = 192,nombre_tours,distance_restante,demi_tours; + printf("Entrez une distance en mètres : "); + scanf("%d",&distance); + nombre_tours = distance/tour; + distance_restante = distance - (192*nombre_tours); + if (distance_restante < 96){ + if (nombre_tours > 1 ){ + printf("Vous avez effectué %d tours\n",nombre_tours); + } + if (nombre_tours == 1 ){ + printf("Vous avez éffectué 1 tour\n"); + } + if (nombre_tours == 0 ){ + printf("Vous n'avez pas efféctué un tour\n"); + } + } + else{ + if (nombre_tours > 1 ){ + printf("Vous avez effectué %d tours et demi\n",nombre_tours); + } + else{ + if (nombre_tours = 1 ){ + printf("Vous avez éffectué 1 tour et demi\n"); + } + if (nombre_tours = 0 ){ + printf("Vous n'avez effectué un demi tour\n"); + } + } + } + return EXIT_SUCCESS; +} \ No newline at end of file