Jump to content

Archived

This topic is now archived and is closed to further replies.

Karol90

Pole i obwód koła w C#

Recommended Posts

Wzór na pole koła:

float P = (M_PI*pow(r,2));

Obwód:

 float O = (2*M_PI*r);

gdzie r to promień, a M_PI to definicja liczby PI

Napisałem tak jakby to wyglądało w C++, w C# pewnie wyglądać to będzie podobnie ale chodzić będzie 2x wolniej ehehe ;p

Link to comment
Share on other sites



  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...