This file contains 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("Opérations arithmétiques sur deux nombres entiers:\n"); | |
printf("--------------------------------\n"); | |
int a,b,S,So,M,D; | |
printf("Entrez le premier nombre: "); | |
scanf("%d",&a); | |
printf("Entrez le deuxième nombre: "); | |
scanf("%d",&b); |
This file contains 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("Carré d'un nombre réel:\n"); | |
printf("--------------------------------\n"); | |
float x,X; | |
printf("Entrez le nombre: "); | |
scanf("%f",&x); | |
printf("--------------------------------\n"); | |
X=x*x; |
This file contains 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("Moyenne de trois notes:\n"); | |
printf("--------------------------------\n"); | |
float a,b,c,M; | |
printf("Entrez la note 1: "); | |
scanf("%f",&a); | |
printf("Entrez la note 2: "); | |
scanf("%f",&b); |
This file contains 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("Cube d'un nombre réel:\n"); | |
printf("--------------------------------\n"); | |
float x,X; | |
printf("Entrez le nombre: "); | |
scanf("%f",&x); | |
printf("--------------------------------\n"); | |
X=x*x*x; |
This file contains 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() | |
{ | |
float R,S; | |
printf("Surface d'un cercle de rayon R:\n"); | |
printf("********************************\n"); | |
printf("Entrez le rayon R: "); | |
scanf("%f",&R); | |
S=R*R*3,14; | |
printf("La surface du cercle est: %f\n", S); |
This file contains 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("Surface et périmètre d'un rectangle:\n"); | |
printf("================================\n"); | |
float l,L,S,P; | |
printf("Entrez la largeur : "); | |
scanf("%f",&l); | |
printf("Entrez la longueur : "); |
This file contains 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("{{ Valeur du polynôme : aX^3 + bX^2 + cX + d }}\n"); | |
printf("================================\n"); | |
float a,b,c,d,x,V; | |
printf("Entrez le coefficient a: "); | |
scanf("%f",&a); | |
printf("Entrez le coefficient b: "); |
This file contains 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("Calcul des salaires brut et net d’un employé:\n"); | |
float Sal_brt,Sal_net, Sal_hrs_brt,Nbr_hrs, charge; | |
float taux_impo=0.25; | |
printf("Entrez le nombre d'heures de travail par mois: "); | |
scanf("%f",&Nbr_hrs); | |
printf("Entrez le salaire horaire brut (en DH): "); | |
scanf("%f",&Sal_hrs_brt); |
This file contains 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("Converteur de secondes en format: heures : minutes : secondes\n"); | |
printf("--------------------------------------------------------------\n"); | |
int X, H, M, S, R; | |
printf("\n"); | |
printf("Entrez le nombre de secondes: "); | |
scanf("%d",&X); |
This file contains 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("Converteur de secondes en format: jours : heures : minutes : secondes\n"); | |
printf("---------------------------------------------------------------------\n"); | |
int X, J, H, M, S, R1,R2; | |
printf("\n"); | |
printf("Entrez le nombre de secondes: "); | |
scanf("%d",&X); |
OlderNewer