Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

im on exam converts to units

1 visualización (últimos 30 días)
plshelpmee
plshelpmee el 27 de Dic. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
PLS HELP ME I M ON EXAM
WRITE A FUNCTION that converts a given length in centimeters to inches or metres. The function has two inputs: the first one x, is a number( lenght in centimeters), and the second one is an integer n , that defines which unit to convert into, If n is 1 function terurns the lenght in meters , and if n is 2, it returns lenght in inches. otherwise (if n is neither 1 or 2) the function prints 'the 2nd input must be 1 (for meters) or 2 (for inches)! on the screen and gives no output
  1 comentario
KALYAN ACHARJYA
KALYAN ACHARJYA el 27 de Dic. de 2019
Editada: KALYAN ACHARJYA el 27 de Dic. de 2019
"PLS HELP ME I M ON EXAM"
Are you currently in the examination hall?

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by