Advertisement
Guest User

Untitled

a guest
Mar 14th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. program TASK_3
  2. implicit none
  3. real :: x = 0.0, y = -3, u
  4.  
  5. write(*, '(T6)', advance="no")
  6. do while (y < 1.1)
  7.     write(*, '(F6.1)', advance="no") y
  8.     y = y + 0.2
  9. enddo
  10. write(*, *)
  11.  
  12. do while (x < 3.1)
  13.     y = -3.0
  14.    
  15.     write(*, '(F5.1)', advance="no") x
  16.     do while (y < 1.1)
  17.         u = sqrt(x ** 2 + 4 * y ** 2)
  18.         write(*,'(F6.2)', advance="no") u
  19.         y = y + 0.2
  20.     end do
  21.     write(*, *)
  22.    
  23.     x = x + 0.15
  24.  
  25. end do
  26.  
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement