# URI / BEE CROWD 1134 - Type of Fuel - Solution in C,C++,Python | URI - BEECROWD - BEE 1134 Solution in C,C++,Python

beecrowd | 1134

# Adapted by Neilor Tonin, URI  Brazil

Timelimit: 1

## URI / BEE CROWD 1134 - Type of Fuel - Solution in C,C++,Python | URI - BEECROWD - BEE 1134 Solution in C,C++,Python :

A gas station wants to determine which of their products is the preference of their customers. Write a program to read the type of fuel supplied (coded as follows: 1. Alcohol 2. Gasoline 3. Diesel 4. End). If you enter an invalid code (outside the range of 1 to 4) a new code must be requested. The program will end when the inserted code is the number 4.

## Input

The input contains only integer and positive values.

## Output

It should be written the message: "MUITO OBRIGADO" and the amount of customers who fueled each fuel type, as an example.

 Input Sample Output Sample 817224 MUITO OBRIGADOAlcool: 1Gasolina: 2Diesel: 0
N.B: Don't copy paste the code as same. Just try to understand it and try yourself.

## URI / BEECROWD Online Judge 1134 Solve in C :

```#include <stdio.h>
int main()
{
int a, x=0, y=0, z=0;
while(1)
{
scanf("%d", &a);
if(a==4)
break;
else
{
if(a==1) x++;
else if(a==2) y++;
else if(a==3) z++;
else continue;
}
}