You are on page 1of 1

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

h> main() { int cont=1,qtding=0,numing,posicao; printf("Informe a quantidade de ingressos vendidos"); scanf("%d",&qtding); while(cont<=qtding) { printf("Informe o numero ingresso"); scanf("%d",&numing); // posicao=cont; if (cont==numing) { printf("Ganhador"); } cont++; } system("pause"); }

You might also like