/* PRODUIT EN CROIX Version 1 [Copyright 2022 Gérome CHAVANAS] (gerome@chavanas.fr) Logiciel Libre sous Licence GPL v.3 (Voir en bas de fichier). Ecrit avec GNU Nano 6.2. Pouquoi ne pas le compiler avec GNU GCC ;-) ? Sous UBUNTU 22.04.1 LTS , en mode Console uniquement. */ #include #include int main () { float donneeUne = 0; float donneeDeux = 0; float donneeTrois = 0; float donneeRecherchee=0; int continuer = 0; do { system("clear"); printf("\n{ PRODUIT EN CROIX } ~Copyright 2022, Gérome CHAVANAS ~ GPL v3 ~\n"); printf("#################################################################\n\n"); printf("Exemple :\n"); printf("Pour [Donnée 1] >> Nous avons [Donnée 2] \n"); printf("Donc pour [Donnée 3] >> Nous aurons [Donnée recherchée] \n"); printf("\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"); printf("[Donnée 1] : "); scanf("%f" , &donneeUne); printf("[Donnée 2] : "); scanf("%f" , &donneeDeux); printf("[Donnée 3] : "); scanf("%f" , &donneeTrois); donneeRecherchee = (donneeTrois * donneeDeux) / donneeUne ; printf("\n Pour %.2f nous avons %.2f.\n" , donneeUne, donneeDeux); printf("Donc pour %.2f nous avons %.2f." , donneeTrois, donneeRecherchee); printf("\n\nLe Résultat est : %.2f \n\n\n" , donneeRecherchee); printf("Continuer ? [1 oui / 0 non]\n> : "); scanf("%d" , &continuer); }while (continuer == 1); printf("\n\nAU REVOIR \n\n\n"); return 0; } /* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . 3 */