#include <cmath>
#include <iostream>

float alpha = 3.14/3;
float a[2] = {2*sqrt(3), -4};
float b[2] = {sqrt(3),    0};

void
printpoint(float p[])
{
	std::cout << "(" << p[0] << "; " << p[1] << ")";
}

void
coordynat(float t[])
{
	float c[2];
	c[0] = t[0]*cos(alpha) - t[1]*sin(alpha);
	c[1] = t[0]*sin(alpha) + t[1]*cos(alpha);
	std::cout << "Prezhniye coordinaty tochky ";
	printpoint(t);
	std::cout << " -> ";
	printpoint(c);
	std::cout << std::endl;
}

int
main()
{
	coordynat(a);
	coordynat(b);

	return 0;
}
