Notes
Untitled
Content of the notes (1)
Page 1
int programa_1()
{
int n, x, y;
y = 1;
scanf("%d %d", &n, &x);
while (x > 0)
{
y = y * n;
x = x - 1;
}
printf("%d", y);
system("pause");
}
int programa_2()
{
int n, x, y;
y = 1;
scanf("%d", &x);
while (x > 0)
{
y = y * x;
x = x - 1;
}
printf("%d", y);
system("pause");
}
int programa_3()
{
const int MAX = 6;
int F[MAX];
int i;
F[0] = 1;
for (i = 1; i < MAX; i++)
F[i] = i * F[i - 1];
system("pause");
}
(FUNÇÃO PRINCIPAL)
Information
- Description
- Note on Untitled, created by ronaldo fenomeno on 10/10/2018.
- Created by
- ronaldo fenomeno
- Views
- 1
- Rating