25 lines
377 B
C
25 lines
377 B
C
|
|
|
|
#include <stdio.h>
|
|
|
|
#define MAXTAM 100
|
|
|
|
struct Funcionario {
|
|
int matricula;
|
|
char nome[MAXTAM];
|
|
};
|
|
|
|
void main (){
|
|
struct Funcionario f;
|
|
|
|
printf("\nEntre com a matricula: ");
|
|
scanf("%d", &f.matricula);
|
|
|
|
printf("\nEntre com o nome: ");
|
|
scanf("%s", f.nome);
|
|
|
|
printf("\nMatricula: %d", f.matricula);
|
|
printf("\nNome: %s", f.nome);
|
|
printf("\n\n");
|
|
}
|