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
# -*- coding: utf-8 -*- | |
# Ajouter deux nombres pour calculer l'[aire du rectangle = (Longueur*largeur)] | |
Longueur = input('Entrer la Longeur: ') | |
largeur = input('Entrer la largeur: ') | |
# Ajouter deux nombres | |
aire = float(Longueur) * float(largeur) | |
if Longueur <= largeur: | |
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> | |
int main() | |
{ | |
printf ("4 puissance 2 = %f\n", pow (4.0, 5.0) ); | |
printf ("5 puissance 4 = %f\n", pow (5, 4) ); | |
return 0; | |
} |
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> | |
int main( void ) { | |
float a ,b, c; | |
/* Entrer le premier chiffre */ | |
scanf("%f", &a); | |
/* Entrer le second chiffre */ | |
scanf("%f", &b); | |
c = hypotf(a, 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> | |
#include <stdlib.h> | |
int main () | |
{ | |
/* On initialise la variable à zéro */ | |
long ageUser = 0; | |
/* On demande l'âge à l'utilisateur */ | |
printf("Quel âge avez vous ? "); | |
/*L'utlisateur rentre son âge */ |
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 <stdlib.h> | |
int main() | |
{ | |
char str[100]; | |
gets(str); | |
puts(str); | |
return 0; |