Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main() {
- int lignes;
- int alea;
- alea = rand()%2;
- int ligTmp; // lignes temporaires
- //Demander cb de lignes
- do{
- printf("Combien voulez-vous de lignes ?\n");
- scanf("%d", &lignes );
- }while (lignes =< 1);
- // afficher les étoiles et/ou espaces
- for (ligTmp =1 ; ligTmp =< lignes ; ligTmp++);
- // actions//
- switch (alea) {
- case 0 :
- printf("*");
- break;
- case 1 :
- printf(" ");
- break;
- default:
- do{
- }while (lignes =< 1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement