Programming 1-1

Programming 1-1 - call statement c = FtoC(F...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
14W EngE1114 Programming HW 16/10/06 Park, Jungsun / No.1 % 14W EngE 1114 Inventor HW FtoC 16/10/06 Jungsun Park % This function is to convert degree fahrenheit to degree centigrade. % when it receives the degree fahrenheit value
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % call statement: c = FtoC(F) function [CENTIGRADE]=FtoC(F); CENTIGRADE=(F-32)/1.8; >> cent= FtoC(72) cent = 22.2222 >> FtoC(50) ans = 10 START INPUT F C=(F-32)/1.8 OUTPUT C STOP...
View Full Document

This note was uploaded on 03/19/2008 for the course ENGE 1114 taught by Professor Twknott during the Fall '06 term at Virginia Tech.

Ask a homework question - tutors are online