[Oberon] *****SPAM***** CASE statement

strohm at airmail.net strohm at airmail.net
Fri Apr 9 02:14:28 CEST 2021


	


Yes.  Refer to https://people.inf.ethz.ch/wirth/Oberon/Oberon.Report.pdf for the basics, and one of the basic Oberon programming textbooks for examples.  You don't need BEGIN ... END around the block.

--John R. Strohm

On Thu, 8 Apr 2021 16:31:30 -0600, Duke Normandin <dukeofpurl at gmx.com> wrote:

Is it possible to have execute a block of code - BEGIN .... END for one or more CASE alternatives? I'm trying to simulate the following C code:

switch (c){
case '1':
printf("Enter a number/temperature to convert: ");
scanf("%f", &temp);
printf("Your input was %.1lf Fahrenheit\n", temp);
printf("That's %.1lf in Celsius\n", fahr2cels(temp));
break;
--
Duke Normandin 
--
Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
https://lists.inf.ethz.ch/mailman/listinfo/oberon
 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20210408/58afe32a/attachment.html>


More information about the Oberon mailing list