rect10_vallillo_HW03

# rect10_vallillo_HW03 - 'Joseph;student(1.age='19...

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

Problem 3 %Joseph Vallillo - Recitation 10 clear;clc datestr(now) %This function displays the date and time that the m file is ran x=10000000; while (x<=99999999) if (isprime(x)) fprintf( 'The smallest 8 digit prime number is %1.0f\n' ,x) break end x=x+1; end ans = 28-Oct-2010 16:28:51 The smallest 8 digit prime number is 10000019 Problem 4 student(1).name=
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 'Joseph' ;student(1).age= '19 years' ;student(1).major= 'Biomedical En for x=1:2 fprintf( '%s is %s of age and is studying %s\n' ,student(x).name,student(x).age, end Joseph is 19 years of age and is studying Biomedical Engineering Daniel is 18 years of age and is studying Accounting Published with MATLAB® 7.9 1...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online