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!
we never done something like this in class
hey ay computer geeks
fotran? hmmmm
Do we know the size of the array?
How will you know when to finish?
eh sorry was not here any size, i just want to see how read from terminal say the size 10
@wio
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
Hmmmm, well, I think you can read from input with `read(*,*) variable_name`
but how do create data to terminal?
I have no idea what you're asking. What do you have so far?
can't even start because of what they asked! i learned from the course how write read to files not terminal
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
this is the exercise i'm trying to do
so i got how to array that has 10 elements with name x
Join our real-time social learning platform and learn together with your friends!