Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (xapproachesinfinity):

hey guys I'm trying to write this program in fortran write a program to read some numbers from terminal and store them into an array ================= how to read from terminal never done this!

OpenStudy (xapproachesinfinity):

we never done something like this in class

OpenStudy (xapproachesinfinity):

hey ay computer geeks

OpenStudy (anonymous):

fotran? hmmmm

OpenStudy (anonymous):

Do we know the size of the array?

OpenStudy (anonymous):

How will you know when to finish?

OpenStudy (xapproachesinfinity):

eh sorry was not here any size, i just want to see how read from terminal say the size 10

OpenStudy (xapproachesinfinity):

@wio

OpenStudy (xapproachesinfinity):

as far as i know is to read data from else where we need to create that data using file and read that data back to our program

OpenStudy (anonymous):

Hmmmm, well, I think you can read from input with `read(*,*) variable_name`

OpenStudy (xapproachesinfinity):

but how do create data to terminal?

OpenStudy (anonymous):

I have no idea what you're asking. What do you have so far?

OpenStudy (xapproachesinfinity):

can't even start because of what they asked! i learned from the course how write read to files not terminal

OpenStudy (xapproachesinfinity):

Write a program that fills a 10 element array x with values between 0 and .9 in steps of .1. Print the values of sin(x) and cos(x) using the properties of arrays to simplify your program

OpenStudy (xapproachesinfinity):

this is the exercise i'm trying to do

OpenStudy (xapproachesinfinity):

so i got how to array that has 10 elements with name x

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!