View difference between Paste ID: CK1D4gS3 and RTaHHgs3
SHOW: | | - or go back to the newest paste.
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <time.h>
4
#define a 40
5
#include <locale.h>
6
int main (){
7
    setlocale(LC_ALL,"Portuguese");
8
		struct {
9
		char nome [a];
10
		int cpf;
11
		char rg[a];
12
		char cidade[a];
13
	} data[2] ;
14-
14+
	 struct{
15-
        struct{
15+
16
            int qtd;
17
            int cpf;
18
        }compra[2];
19
	int i, j;
20-
20+
21-
int i, j;
21+
22-
22+
23-
23+
24
}	srand (time(NULL));
25
	for (i=0;i<1; i++){
26
system("cls");
27
		if (compra[i].qtd >= 5)
28
            if (data[i].cpf == compra[i].cpf )
29-
29+
30
	}
31
	return 0;}