Skip to content

Instantly share code, notes, and snippets.

@Ansarina
Last active October 22, 2015 22:00
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 Ansarina/0062e32122d4f24ce947 to your computer and use it in GitHub Desktop.
Save Ansarina/0062e32122d4f24ce947 to your computer and use it in GitHub Desktop.
Program Add2Vector3D
Real,dimension(3)::A,B,C
Integer::i
Do i=1,3
Print "Please enter A(", i , ")"
Read A(i)
End do
Do i=1,3
Print "Please enter B(", i , ")"
Read B(i)
End do
Do i=1,3
C(i)=A(i)+B(i)
End Do
Do i=1,3
Print "C(",i,")=", C(i)
End do
End Program
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment