Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readme update #1

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions EMSY_TP1.c
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
//-----------------------------------------------------------------------------------//
// Nom du projet : EMSY TP1
// Nom du fichier : EMSY_TP1.c
// Date de création : 27.09.2024
// Date de création : 08.11.2024
// Date de modification : xx.xx.20xx
//
// Auteur : Philou (Ph. Bovey)
// Auteur : Louis (LCX)
//
// Version : 0.1
//
// Description :
// Description calcule de la surface d'un carré
//
//
// Remarques :
//----------------------------------------------------------------------------------//

//--- librairie standart ---//
#include <stdio.h> // pour usage printf et scanf_s
// Nouveauté du VC++ 2005, 2008, 2010 et 2015 : le scanf_s remplace scanf

//-- programme principale --//
int main(void)
{

return(0);
}
#include <stdio.h>
int main()
{
float cote, surface;

// Demander à l'utilisateur de saisir la longueur du côté
printf("Entrez la longueur du côté du carré: ");
scanf("%f", &cote);

// Calculer la surface du carré
surface = cote * cote;

// Afficher la surface
printf("La surface du carré est: %.2f\n", surface);

return 0;
}
Loading