#include <iostream>
using namespace std;

void berzenham(int x1, int y1,int r){
	
int xk=x1;
int yk=r;
int dk=1-r;
cout<<"xk      "<<"        yk"<<"       dk\n";
while(yk>xk){
	cout<< xk<<"       "<<yk<<"        "<<dk<<'\n';
	
	if(dk<0){dk=dk+2*xk+3;
	         xk=xk+1;
	}
	else {
		dk=dk+2*(xk-yk)+5;
		xk=xk+1;
		yk=yk-1;
	}
}	
	
	
}
int main(){
	int x1,y1,r;
	 cout<<"enter x1:";
	 cin>>x1;
	 cout<<"\nenter y1:";
	 cin>>y1;
	 cout<<"\nenter radius";
	 cin>>r;
	 berzenham(x1,y1,r);
	 return 0;
}