This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"); | |
printf("Montant de participation au prix du repas des employes\n"); | |
printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"); | |
float P, S, M; //Particiapation (P), Salaire mensuel (S), Majoration (M) | |
int C, E ; //Choix Célibataire (C=1) ou marié (C=2), Enfants (E) | |
printf("Entrez le salaire mensuel du salariee (en DH): "); | |
scanf("%f", &S); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
printf("*********************************************\n"); | |
printf("Facture de photocopies\n"); | |
printf("*********************************************\n"); | |
int n ; | |
float p ; | |
printf("\nEntrez le nombre de photocopies effectueess: "); | |
scanf("%d", &n); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include <ctype.h> //=> fonctions "toupper" et "tolower" qui convertient en majuscule (uppercase) / minuscule (lowercase) | |
main() | |
{ | |
printf("______________________________________________________\n"); | |
printf("Conversion d'une lettre Majuscule en minuscule\n"); | |
printf("______________________________________________________\n"); | |
char C ; | |
start: | |
printf("\nSaisissez une lettre Majuscule: "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<math.h> | |
main() | |
{ | |
printf("========================================================================\n"); | |
printf("Resolution des equations du 1er et 2eme degre dans l'ensemeble R\n"); | |
printf("========================================================================\n"); | |
printf("Choisissez le type d'equation a resoudre:\n"); | |
printf("Tapez 1 pour: Equation du 1er degré (ax + b = 0).\n"); | |
printf("Tapez 2 pour: Equation du 2eme degré (ax^2 + bx + c = 0).\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
printf("***********************************************\n"); | |
printf("Signe du produit de deux nombres\n"); | |
printf("***********************************************\n"); | |
float a,b ; | |
int sa=0, sb=0; | |
printf("Entrez le premier nombre: "); | |
scanf("%f", &a); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
printf("**************************\n"); | |
printf("Déterminer si un nombre entier est pair ou impair\n"); | |
printf("**************************\n"); | |
printf("\n"); | |
int n , q, r ; | |
printf("Entrez un nombre entier: "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
printf("--------------------------\n"); | |
printf("Max de 3 nombres\n"); | |
printf("--------------------------\n"); | |
printf("\n"); | |
float a,b,c, m,max; | |
printf("Entrez le premier nombre: "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
printf("Test de 3 nombres et comparaison\n"); | |
printf("\n"); | |
float a,b,c; //a+b=c? a+c=b? b+c=a? | |
printf("Entrez le 1er nombre: "); | |
scanf("%f",&a); | |
printf("Entrez le 2eme nombre: "); | |
scanf("%f",&b); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
printf("--------------------------------\n"); | |
printf("Montant du timbre d'une lettre\n"); | |
printf("--------------------------------\n"); | |
float P; | |
printf("\n"); | |
printf("Entrez le poids de la lettre (en grammes): "); | |
scanf("%f",&P); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
printf("--------------------------------\n"); | |
printf("Catégorie d'âge d’un enfant\n"); | |
printf("--------------------------------\n"); | |
float A; | |
printf("Entrez l'âge de l'enfant: "); | |
scanf("%f",&A); | |
//-------------------------------------------------------------- |