Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- #include<locale.h>
- int main(){
- setlocale(LC_ALL, "Portuguese");
- char nome[256];
- int fn, tam, i, x, j;
- printf("Digite quantos frangos tentarão levantar o martelo Mjölnir: ");
- scanf("%d",&x);
- for(i=0;i<x;i++)
- {
- setbuf(stdin, NULL);
- printf("Quem ousa desafiar o lendario martelo Mjölnir?!\n");
- gets(nome);
- setbuf(stdin, NULL);
- tam=strlen(nome);
- fn=-1;
- while(fn<0 || fn>25000){
- printf("\nQual sua força, frangote?!\n");
- scanf("%d", &fn);
- }
- if(fn>=5000)
- printf("\nY\n\n");
- else
- printf("\nN\n\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement