Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #define N 50
- struct contato{
- char pessoa[40],empresa[30];
- int lista[10];
- };
- int main(){
- struct contato Agenda[50];
- int i,j;
- for(i=0;i<N;i++){
- printf("entre com o nome da empresa:");
- gets(Agenda[i].empresa);
- fflush(stdin);
- printf("quem eh o rsponsavel:");
- gets(Agenda[i].pessoa);
- fflush(stdin);
- for(j=0;j<13;j++){
- printf("entre com o %d contato desta empresa:",j+1);
- scanf("%d",&Agenda[i].lista[j]);
- }
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment