#include <iostream>
#include <fstream>
#include <math.h>
using namespace std;
struct complex
{
float a,b;
float modul()
{
return sqrt(pow(a,2)+pow(b,2));
}
};
void main()
{
complex z;
cout<<"Introduceti nr complex: \n";
cout<<"\tPartea reala: ";
cin>>z.a;
cout<<"\tPartea imaginara: ";
cin>>z.b;
cout<<"\nNumarul complex este: ("<<z.a<<","<<z.b<<")";
cout<<"\nModulul este: "<<z.modul()<<endl;
int g;
cin >>g;
}