[Oberon] CASE statement

Duke Normandin dukeofpurl at gmx.com
Fri Apr 9 00:31:30 CEST 2021


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 <dukeofpurl at gmx.com>


More information about the Oberon mailing list