#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main()
{
	int a, b, c, d, e;
	char ver;
	
	do
	{
	printf("\n\nVote no candidato:(1, 2 ou 3):");
	scanf("%i",&a);
	
	if(a == 1)
	{
		b++;
	}
	else if(a == 2)
	{
		c++;
	}
	else if(a == 3)
	{
		d++;
	}
	
	printf("\n\n\n\n\nProximo\n");
	printf("Proximo voto? (S ou N):\n");
	scanf(" %c",&ver);
    }
	while(ver == 'S');
	
	printf("\n\nResultados:\n");
	printf("Candidato 1:%i Votos\n\n",b);
	printf("Candidato 2:%i Votos\n\n",c);
	printf("Candidato 3:%i Votos\n\n",d);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: