Skip to content

Instantly share code, notes, and snippets.

@steniowagner
Created January 22, 2018 18:02
Show Gist options
  • Save steniowagner/929e9a7ab14bbe65fb13636addc73a92 to your computer and use it in GitHub Desktop.
Save steniowagner/929e9a7ab14bbe65fb13636addc73a92 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
main()
{
int anos;
printf("\nDigite o anos dos casados: ");
scanf("%d",&anos);
switch(anos){
case 25:
printf("\nBodas de Prata!\n");
break;
case 50:
printf("\nBodas de Ouro!\n");
break;
case 75:
printf("\nBodas de Diamantes!\n");
break;
}
return 0;
}
@lucaslra
Copy link

Falta o retorno no método main()

@lucaslra
Copy link

O tipo de retorno, Sorry.

int main()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment