Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ============================================================================
- Name : batalha.c
- Author :
- Version :
- Copyright : Your copyright notice
- Description : Hello World in C, Ansi-style
- ============================================================================
- */
- #include <stdio.h>
- #include <stdlib.h>
- int main(void) {
- int tamanho; int retry;
- do{
- retry=0;
- printf("bem vindo. introduza o tamanho do campo (10,15,20)\n");
- scanf("%d", &tamanho);
- switch (tamanho)
- {
- case 10:
- jogo_10();
- break;
- case 15:
- jogo_15();
- break;
- case 20:
- jogo_20();
- break;
- default:
- printf("tamanho inválido. inserir novamente?(0 para não, 1 para sim)\n");
- scanf("%d",&retry);
- }
- }while(retry==1);
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement