26.08.2014 Views

C# e Orientação a Objetos

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ARRAYS 62<br />

Exercícios Complementares<br />

1 Faça um programa que calcule a média dos elementos recebidos na linha de comando. Dica:<br />

para converter strings para double utilize o método ToDouble()<br />

1 string s = "10";<br />

2 double d = System . Convert . ToDouble (s);<br />

Código <strong>C#</strong> 4.16: ToDouble()<br />

2 Crie um programa que encontre o maior número entre os valores passados na linha de comando.<br />

62 www.k19.com.br

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!