Created
September 4, 2019 18:32
-
-
Save invatainfo/30341119e652b7734a18be9d52d6d118 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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