part2b - PROGRAM part2b IMPLICIT NONE REAL:: a,b,z,x,v,t...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
!-------------------------------------------------------------------- ! Program Name: Problems With Math ! Assignment: part2b ! Due Date: Janoary 27, 2010 ! ! Programmer: Alex Pollock Student ID: 000937716 ! Course: CSC-112L (214) Lab TA(s): Colin Moyer ! ! Description: This program takes any two numbers from the user and performs ! various operations with them. ! ! Input: Two numbers, "a" and "b" stored as real variables. ! ! Output: Numerical operations involving "a" and "b". ! ! Assumptions/Limitations: N/A !--------------------------------------------------------------------
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: PROGRAM part2b IMPLICIT NONE REAL:: a,b,z,x,v,t INTEGER:: c,d,y,w,u,s WRITE(*,*) "Enter any two numbers:" READ(*,*) a b c=a d=b z=(a)+(b) WRITE(*,*) "a+b=" WRITE(*,*) z WRITE(*,*) y=(c)+(d) WRITE (*,*) "c+d=" WRITE (*,*) y WRITE(*,*) x=(a)-(b) WRITE (*,*) "a-b=" WRITE (*,*) x WRITE(*,*) w=(c)-(d) WRITE(*,*) "c-d=" WRITE(*,*) w WRITE(*,*) v=a*b WRITE(*,*) "a*b=" WRITE(*,*) v WRITE(*,*) u=c*d WRITE(*,*) "c*d=" WRITE(*,*) u WRITE(*,*) t=b/a WRITE(*,*) "b/a=" WRITE(*,*) t WRITE(*,*) s=d/c WRITE(*,*) "s=d/c=" WRITE(*,*) s WRITE(*,*) END PROGRAM part2b...
View Full Document

This note was uploaded on 07/22/2010 for the course MAE 112 taught by Professor Freeh during the Spring '10 term at North Country Community College.

Page1 / 2

part2b - PROGRAM part2b IMPLICIT NONE REAL:: a,b,z,x,v,t...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online