Skip to content

Instantly share code, notes, and snippets.

View limarich's full-sized avatar
🏠
Working from home

Richard Lima Ribeiro limarich

🏠
Working from home
View GitHub Profile
@limarich
limarich / forca.c
Created February 16, 2020 23:18
jogo da forca em c
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
char palavra[30] = {}, segredo[30] = {}, letra, erradas[26] = {};
int c, i = 0, vida = 6, x = 0, aux;
printf("Digite a palavra secreta\n");
scanf("%s",palavra);