hw4p2 - 1 for yes 0 for no end fprintf'The largest entered...

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

View Full Document Right Arrow Icon
clear;clc; c R = 0; N = 0; c = 1; c while c ==1; Number = input ('Enter a number: '); if Number > R; R = Number; N = N+1; else N = N+1; end c = input('Continue?
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 for yes, 0 for no: '); end fprintf('The largest entered number is %.2f of %.0f entered numbers.', R,N)...
View Full Document

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

Ask a homework question - tutors are online