For example, when you try to push a book along the floor, friction makes this difficult. Friction always works in the direction opposite to the direction in which the object is moving, or trying to move. PRINT*, “THE DIVISION OF TWO NUMBERS IS”, cįriction is a force between two surfaces that are sliding, or trying to slide, across each other. PRINT*, “THE MULTIPLICATION OF THE TWO NUMBERS IS”, c PRINT*, “THE SUBTRACTION OF TWO NUMBERS IS”, c PRINT*, “PRESS 3 TO MULTIPLY THE NUMBERS” ! FORTRAN PROGRAM TO ADD SUBTRACT MULTIPLY DIVIDE When x is equal to 1 then addition is done when x is equal to 2 then subtraction is done and when x is 3 then multiplication is done and at last when x is 4 then division is done. x is another variable which is used to perform diffent Arithmetic operations. Variables a and b are used to store inputs and variable c is used to store output. a, b and c are three Real Number variables. And outputs are displayed using PRINT function. This is the FORTRAN program to add subtract multiply divide two numbers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |