more loops l.
Download
Skip this Video
Download Presentation
More loops

Loading in 2 Seconds...

play fullscreen
1 / 15

More loops - PowerPoint PPT Presentation


  • 304 Views
  • Uploaded on

More loops. The percentage of bosses that think that their jokes are “very very funny” is. 3 95 98. This percentage of employees who think that their bosses are “very very funny” is. 3 95 98.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'More loops' - Solomon


Download Now An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
slide4
This percentage of employees think that their bosses are “very very funny” when the boss is conducting the survey is
  • 3
  • 95
  • 98
the output of the last line is sum1 0 for i 1 1 3 for j 1 1 3 sum1 sum1 4 end end sum1
The output of the last line issum1=0;for i=1:1:3 for j=1:1:3 sum1=sum1+4; endendsum1
  • 0
  • 4
  • 12
  • 36
the output of the last line is sum1 0 for i 1 1 3 for j 1 1 3 sum1 sum1 2 end end sum1
The output of the last line issum1=0;for i=1:1:3 for j=1:1:3 sum1=sum1*2; endendsum1
  • 0
  • 18
  • 64
  • 128
the output of the last line is sum1 1 for i 1 1 3 for j 1 1 3 sum1 sum1 2 end end sum1
The output of the last line issum1=1;for i=1:1:3 for j=1:1:3 sum1=sum1*2; endendsum1
  • 0
  • 18
  • 128
  • 512
the output of the last line is f inline x 2 sum f 2 f 4
The output of the last line isf=inline(′x^2′);sum=f(2)+f(4)
  • 4
  • 6
  • 16
  • 20
slide14

function out=valfun(f,a,b)% f= function of x% a= input real number% b= input real numberout=(f(a)-b)/5is saved in valfun.m file, what would be the output of the last line of the following test programg=inline(′2*x′)outvalue=valfun(g,3,4)

  • -2/5
  • 2/5
  • 6/5
  • 6
slide15
The output of the last line isfor i =1:1:2 a(i,i)=0;endsum1=0;for i=1:1:2 for j=1:1:2 sum1=sum1+5; endendsum1
  • 0
  • 5
  • 10
  • 20