-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab.c
More file actions
62 lines (48 loc) · 807 Bytes
/
Copy pathlab.c
File metadata and controls
62 lines (48 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include <stdio.h>
#include <string.h>
typedef enum
{
true = 1,
false = 0,
} bool;
void propriedades(char *buff)
{
*buff = '\0';
for (int i = 0; i < 8; i++)
{
strcat(buff, "[#]");
}
}
void propriedades2(char *buff)
{
*buff = '\0';
for (int i = 0; i < 8; i++)
{
strcat(buff, "[-]");
}
}
int main()
{
/*
char buff[25] = "";
propriedades(buff);
printf("1-%s\n", buff);
propriedades2(buff);
printf("2-%s\n", buff);
printf("Len: %d\n", strlen("[C][C][C][C][C][C][C][C]"));
int x = 512;
int y = 2048;
double result = (double) x / y;
printf("%lf\n", result);
x = 1024;
result = (double) x / y;
printf("%lf\n", result);
x = 513;
result = x / y;
printf("%lf\n", result);
return 0;
*/
if(NULL == false)
puts("Sim e");
return 0;
}