Pratical Helloworld

 

Q1.   hello.f90 (filename.f90)
program hello
    implicit none

    print *, "Hello World!"
    pause
end program

 

 

Q2.         Area.f90

PROGRAM circle_area

IMPLICIT NONE

!reads a value representing the radius of a circle,

!then calculates and writes out the area of the circle.

REAL :: radius, area

REAL, PARAMETER :: pi=3.141592

READ (*,*) radius

area = pi*radius*radius

WRITE (*,*) area

pause

END PROGRAM circle_area

 

Q3. Areacircle.f90

program Calc

real :: radius,area

real, parameter :: pi = 3.14

 

print *, "enter ratdius"

read *, radius

 

area = pi * radius **2

 

print *, area

pause

end program Calc

 

Comments

  1. Blog commenting on academic support can be valuable for students who want to understand how to approach challenging coursework more effectively. A reliable service can provide guidance on research, structure, referencing, formatting, and time management while helping learners develop stronger academic habits. Students should always review their requirements carefully and use external assistance as a learning resource rather than a replacement for their own effort. For students looking for guidance related to coursework, assignment help brisbane can be a useful option to explore. Clear communication and understanding the assessment instructions can make academic preparation more organised and manageable.

    ReplyDelete

Post a Comment

Popular posts from this blog

Download Software

URL PDF