1)
#include
#include
int sover (int n)
{
int sum = 0;
for (int i = 1; i<=n/2; i++)</span>
if (n%i==0) sum+=i;
if (sum==n)
return 1;
else return 0;
}
int main()
{
int n;
printf ("N = ");
scanf ("%d",&n);
if (sover(n)==1)
printf ("Sovershennoe");
else printf ("Ne sovershennoe");
printf("\n");
system ("PAUSE");
return 0;
}
2)
#include
#include
int main()
{
for (int i = 1; i<=5; i++)<br> {
for (int j = 1; j<=5-i+1; j++)<br> printf ("%d ",5+i-1);
printf ("\n");
}
system ("PAUSE");
return 0;
}