Exercicios C Primeiro ano EC
/*****************************************************************************
HEADER-FILES
*****************************************************************************/
/* system-headerfiles */
#include
#include
#include
#include
/*****************************************************************************
GLOBAL DEFINITIONS
*****************************************************************************/
/*****************************************************************************
FILE LOCAL DEFINITIONS
*****************************************************************************/
#define False 0
#define True 1
/*****************************************************************************
FILE LOCAL FUNCTION PROTOTYPES
*****************************************************************************/
/*****************************************************************************
FUNCTIONS DEFINITIONS
*****************************************************************************/
/* ===========================================================================
* Funcao : main()
* Descricao : Este programa executa os problemas propostos de vetores
* Entrada : Nada
* Saida : Nada
*/
int main(void)
{
char cOpt;
/* Leitura de valores */ do { /* system("cls"); */ printf("Digite '1' p/ executar 1o. exercicio\n"); printf("Digite '2' p/ executar 2o. exercicio\n"); printf("Digite '3' p/ executar 3o. exercicio\n"); printf("Digite '4' p/ executar 4o. exercicio\n"); printf("Digite '5' p/ executar 5o. exercicio\n"); printf("Digite '6' p/ executar 6o. exercicio\n"); printf("Digite '0' p/ terminar\n"); printf("Sua opcao: "); cOpt = getchar(); (void)getchar();
if (cOpt == '0') { /* Nao faz nada */;