Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void suma_complejos(struct complejo *datos, int num_datos, struct complejo *resultado) {
- double x=0, y=0;
- int i;
- for(i=0;i<num_datos;i++){
- x=x+*datos.real;
- y=y+*datos.imaginario;
- datos++;
- }
- *resultado.real=x;
- *resultado.imaginario=y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement