Skip to content

Instantly share code, notes, and snippets.

@invatainfo
Created September 4, 2019 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save invatainfo/30341119e652b7734a18be9d52d6d118 to your computer and use it in GitHub Desktop.
Save invatainfo/30341119e652b7734a18be9d52d6d118 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
struct punct {
float x, y;
};
struct cerc {
struct punct centru;
float raza;
} fig;
int main() {
fig.centru.x = 0;
fig.centru.y = 0;
fig.raza = 1.0;
cout << "Cercul are coordonatele: x: " << fig.centru.x << " y: "
<< fig.centru.y << endl;
cout << "Raza: " << fig.raza << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment