answersLogoWhite

0

nr\m;laeoh9y0m g.qthnedxc

In fortran:

do i=1,5

write(6,*)i

enddo

stop

end

This program will write the numbers 1 to 5 on the screen.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What BASIC program can compute and display all prime numbers from 1 to 40?

PRINT 2,3,5,7,11,13,17,19,23,29,31,37


How do you compute fractions?

If by compute a fraction you mean simplify a fraction such as 1/4 to something like 0.25, you simply divide the top number by the bottom number (numerator by denominator). For the example of 1/4, divide 1 by 4 and you will get 0.25.


7 Write a C program to compute the factorial of a number using for loop?

int factorial(int n) { int i; int f=1; for(i=2;i<=n;++i) f*=i; return f; }


Write a c plus plus program to compute two integers?

int x= 1; int y= 2;


Write a program to compute the sum of first ten integer numbers in PHP?

$n = 10*(1+10)/2;


Which number system is usually followed in a typical 32-bit compute?

2 (i.e., 0 or 1)


A program for simple factorial in prolog?

In Prolog, a simple factorial program can be defined using recursion. Here's a basic implementation: factorial(0, 1). % Base case: factorial of 0 is 1 factorial(N, Result) :- N > 0, N1 is N - 1, factorial(N1, Result1), Result is N * Result1. % Recursive case You can query the factorial of a number by calling factorial(N, Result). where N is the number you want to compute the factorial for.


Write a program in C to compute expansion 1 plus Xpwr2byfact2 plus Xpwr4byfact4 Xpwr6byfact6 plus .......?

#include ...double x, y;...y = cosh (x);


How do you find 2 and half percent of a number?

To find 2 1/2% of a number, multiply the given number by the 0.025 which is the decimal equivalent of 2 1/2. Example: Compute for 2 1/2 of 200. = 0.025 * 200 = 5


C program to compute 1 plus 4 plus 9 plus?

#include<stdio.h> #include<conio.h> void main() { int n,count=0,sum=0; printf("Enter the number of values"); scanf("%d",&n); for(int i=1;count<n;i++) { sum+=i*i; count++; } getch(); }


How do you write a program to factorial in PHP?

To write a program that calculates the factorial of a number in PHP, you can use a recursive function or an iterative approach. Here’s a simple example using a loop: function factorial($n) { $result = 1; for ($i = 2; $i <= $n; $i++) { $result *= $i; } return $result; } echo factorial(5); // Outputs: 120 This code defines a function that multiplies numbers from 2 up to the given number $n to compute the factorial.


What is one half doubled?

Well i think your just a 1 grade trying to solve your homework on the compute well guess what I'm not going to give you the answer it is 17