0% found this document useful (0 votes)
7 views2 pages

Data Processing and Analysis Guide

The document contains code that uses switch statements to output different messages based on numeric input from the user. The first section prompts the user for a number, then uses a switch statement to print "numero 1", "numero 2", or "invalido" depending on if the input is 1, 2, or another number. The second section prompts the user for a month number, then uses a switch statement to print the name of the month in Portuguese for inputs 1 through 12, or "mes invalido" for other inputs.

Uploaded by

Val Santana
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Data Processing and Analysis Guide

The document contains code that uses switch statements to output different messages based on numeric input from the user. The first section prompts the user for a number, then uses a switch statement to print "numero 1", "numero 2", or "invalido" depending on if the input is 1, 2, or another number. The second section prompts the user for a month number, then uses a switch statement to print the name of the month in Portuguese for inputs 1 through 12, or "mes invalido" for other inputs.

Uploaded by

Val Santana
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

int num; num = [Link]([Link]()); //if (num == 1) //{ // [Link]("numero 1"); //} //else if (num==2) // // // // {[Link]("numero2");} else {Console.

WriteLine("numero invalido"); [Link]();

switch (num) { case 1: [Link]("numero 2"); break; case 2: [Link]("nuemero 2"); break; default: [Link]("invalido"); break; } +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++ int mes; [Link]("digite mes"); mes = [Link]([Link]()); switch (mes) { case 1: [Link]("janeiro"); break; case 2: [Link]("fevereiro"); break; case 3: [Link]("maro"); break; case 4: [Link]("abril"); break; case 5: [Link]("maro"); break; case 6: [Link]("janeiro"); break; case 7: [Link]("janeiro"); break; case 8: [Link]("janeiro"); break; case 9: [Link]("janeiro"); break; case 10: [Link]("janeiro"); break; case 11: [Link]("janeiro"); break; default:[Link]("mes invalido");

break;} {[Link]();} } } }

You might also like