Zadatak27-15

#include <iostream>

using namespace std;

int main()
{
int x,y,br,S,r;
cout<<„Unesi poluprecnik kruga r= „;
cin>>r;
br=0;
for (x=1;x<r; x++)
for (y=1; y<r; y++)
if(x*x+y*y<=r*r)
br=br+1;
S=4*br;;
cout<<„Ima „<<S<<“ kvadratica“<<endl;

return 0;
}

Advertisements