mirror of
https://codeberg.org/DansLeRuSH/c-plus-plus-exercises.git
synced 2024-12-04 16:02:08 +00:00
16 lines
280 B
C++
16 lines
280 B
C++
|
// Auteur : Franck ALBARET
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main (void)
|
||
|
{
|
||
|
int Nbr,Reste;
|
||
|
puts ("Veuillez taper un entier :");
|
||
|
scanf ("%i",&Nbr);
|
||
|
Reste=Nbr%2;
|
||
|
if (Reste==0)
|
||
|
puts ("Le nombre est pair\n");
|
||
|
else
|
||
|
puts ("Le nombre est impair\n");
|
||
|
return 0;
|
||
|
}
|