Question
Is there any way to use variables in a format statement?

Answers

Yes, but you have to use one format statement to build a second using a write to a character string. For example if you want to include the value of "n" as the number of real numbers per line you would do the following:

PARAMETER (N=4)
CHARACTER FORM1*16
REAL A(N,N)
DO 10 I=1,N
DO 10 J=1,N
A(I,J)=J*100+I
10 CONTINUE
WRITE(FORM1,2000)N
2000 FORMAT('(1X,',I3,'F6.1)')
WRITE(6,FORM1) A
STOP
END   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Give an example of a time when you assisted a co-worker to enhance their work skills?
  • Q What is the difference between call by value and call by reference in C
  • Q What is caching only server?
  • Q Do you have license for protocols?
  • Q Mention what are the skills required to become a paralegal professional?
  • Q Can you create an instance for an abstract class?
  • Q Sterling b2b integrator 5.2 system requirements ?
  • Q If a carrier proposes to non-renew a commercial policy, which of the following is true? (A)The insurer must provide a response within 15 days of the insured’s request for additional information (B)The insurer must respond in person by sending a field agent (C)The insurer and the carrier must be mediated by a third party legal representive (D)The insurer can only initiate action once the commercial policy has expired
  • Q What is EST
  • Q Which railway station in Karnataka has been renamed as Krantiveera Sangoli Rayanna'?
  • Q NBFC accept deposits for a maximum period of