-
Notifications
You must be signed in to change notification settings - Fork 0
/
conflito.c
179 lines (150 loc) · 5.24 KB
/
conflito.c
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
/***************************************************************************
* conflito.c Version 20221215.142238 *
* *
* Teste de conflito *
* Copyright (C) 2022 by Ruben Carlo Benante *
***************************************************************************
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************
* To contact the author, please write to: *
* Ruben Carlo Benante *
* Email: [email protected] *
* Webpage: http://www.beco.cc *
* Phone: +55 (81) 3184-7555 *
***************************************************************************/
/* ---------------------------------------------------------------------- */
/* includes */
#include <stdio.h> /* Standard I/O functions */
#include <stdlib.h> /* Miscellaneous functions (rand, malloc, srand)*/
/* ---------------------------------------------------------------------- */
/* definitions */
#ifndef VERSION /* gcc -DVERSION="0.1.160612.142306" */
#define VERSION "20221215.142238" /* Version Number (string) */
#endif
#define SBUFF 256 /* string buffer */
/* ---------------------------------------------------------------------- */
/* prototypes */
int f0(int x); /* funcao do professor */
int f1(int x); /* Prof. Ruben , outra */
int f5(int x); /* funcao numero 6*/
int f10(int x); /* funcao do Leonardo Correia santos Galvao */
int f12(int x); /* func Gabriel Costa */
int f13(int x); /* funcao do Cicero Moacir Soares */
int f14(int x); /* funcao do Leonardo Correia Santos Galvao*/
int f15(int x); /* funcao do Pedro Augusto Souza Barros Modesto Jaco*/
int f16(int x); /* funcao do Jose Lucas De Lima Moura*/
int f17(int x); /* funcao do Gabriel Dos Santos Albuquerque */
/* ---------------------------------------------------------------------- */
/* chama 18 funcoes
* retorna sucesso
*/
int main(void)
{
int i; /* general index */
i = 1;
i=f0(i);
i=f1(i);
i=f5(i);
i=f10(i);
i=f12(i);
i=f13(i);
i=f15(i);
i=f16(i);
i=f17(i);
printf("Valor final: %d\n", i);
return EXIT_SUCCESS;
}
/* ---------------------------------------------------------------------- */
/* f0 Prof. Ruben */
/* funcao do professor */
int f0(int x)
{
int y;
y = x-1;
return y;
}
/* ---------------------------------------------------------------------- */
/* f1 Prof. Ruben outra */
int f1(int x)
{
return x/3;
}
/* ---------------------------------------------------------------------- */
/* f5 Vinicius Gomes Epifanio*/
/* funcao numero 6 */
int f5(int x)
{
int z;
z = x+10;
return z;
}
/* ---------------------------------------------------------------------- */
/* f10 Leonardo Correia Santos Galvao*/
int f10(int x)
{
return x*2;
}
/* ---------------------------------------------------------------------- */
/* f15 Pedro */
/* funcao do aluno */
int f15 (int x)
{
int w;
w = x-1;
return w;
}
/* ---------------------------------------------------------------------- */
/* f12 Gabriel Costa*/
int f12(int x)
{
return x+1;
}
/* ---------------------------------------------------------------------- */
/* f13 Cicero */
/* funcao do aluno */
int f13 (int x)
{
int y;
y = x-1;
return y;
}
/*----------------------------------------------------------------------- */
/* f14 Leonardo */
int f14 (int x)
{
x=0;
return x;
}
/*----------------------------------------------------------------------- */
/* f16 Jose Lucas */
/* funcao do aluno */
int f16 (int x)
{
int a;
a = x+2;
return a;
}
/*----------------------------------------------------------------------- */
/* f17 Gabriel Dos Santos*/
/* funcao do aluno */
int f17 (int x)
{
int a;
a = x+10;
return a;
}
/*----------------------------------------------------------------------- */
/* vi: set ai et ts=4 sw=4 tw=0 wm=0 fo=croql : C config for Vim modeline */
/* Template by Dr. Beco <rcb at beco dot cc> Version 20160612.142044 */