Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main() {
- int debut,fin,par;
- printf ("debut = ");scanf ("%d",&debut);
- printf ("fin = ");scanf ("%d",&fin);
- do {//Test parite valide ,0 ou 1
- printf ("parite pair(1) ,impair (0) = ");scanf ("%d",&par);
- }while (par >1);
- do{
- (par ^ (debut & 1)) ? printf ("%d\n",debut): printf ("\n");
- }while (debut++<fin); //Affiche
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement