include stdio include stdlib define int main int argc char argv int in

 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
#include <stdio.h>
#include <stdlib.h>
#define N 3
int main(int argc, char *argv[]) {
int D[N];
int i,k;
do
{printf ("Vvedite massive:");
for (i=0;i<N;i++)
scanf("%d", &D[i]);
}
while(D[i]<=0);
k=0;
for(i=0;i<N;i++)
{
if(D[0]==D[i])
k++;
}
if (k==N)
printf("Mnogoygolnik ravnostoronnui");
else
printf("Mnogoygolnik ne ravnostoronnui");
system("PAUSE");
return 0;
}