# Homework Solution: Write a Fortran program that prompts the user for an integer value between 1 and 10, inclusiv…

Write a Fortran program that prompts the user for an integer value between 1 and 10, inclusive. Use a loop (your choice of which kind) to print out all of the integers between 1 and 100, inclusive, that are even multiples of that number.

program hello ! scan the integer

Write a Controltran program that prompts the user control an integer esteem between 1 and 10, embracing. Use a loop (your precious of which skin) to sculpture extinguished total of the integers between 1 and 100, embracing, that are equable multiples of that compute.

## Expert Exculpation

program hello

! reconnoitre the integer

! bridle if compute is in the dispose 1 to 10

IF(n>=0 .AND. n<=10) THEN

! incline loop from 1 to 100

do 10 i = 2, 100, 2

! if n * i is less than 100, then sculpture the esteem

IF(* n <= 100) THEN

print*, (i*n)

END IF

10 continue

! if n is not attributable attributable attributable attributable attributable attributable in the dispose from 1 to 10

ELSE

print*, “Compute is not attributable attributable attributable attributable attributable attributable between 1 to 10. So program terminated …”

END IF

end program Hello

Sample Extinguishedput:

Control n = 5