Upload programs of this section to Classroom/Unit1/Programs3
Comparing 2 numbers
For the program below you must create 2 variables from the block Variables (Make a variable): N1 and N2.
The program compares 2 numbers and says if N1>N2 (N1 is greater than N2), or N1=N2 (N1 is equal to N2) or N1<N2 (N1 is less then N2). Create the program (comparing_numbers) and don't forget to add your names and class.
The program compares 2 numbers and says if N1>N2 (N1 is greater than N2), or N1=N2 (N1 is equal to N2) or N1<N2 (N1 is less then N2). Create the program (comparing_numbers) and don't forget to add your names and class.
- Download your program: click on the white page button and select Export summary... and save (download) it as html document (untitled.html) to Descargas. Go to Descargas and rename the file: comparing_numbers.html.
- Upload your programs to Classroom/Unit1/Programs3.
Odd numbers (1, 3, 5, 7...) and Even numbers (2, 4, 6, 8...)
For the program below you must create 2 variables from the block Variables (Make a variable): N and Number.
The program determines if the integer number the user enters is an odd or an even number. Create the program (odd&even_numbers) and don't forget to add your names and class.
The program determines if the integer number the user enters is an odd or an even number. Create the program (odd&even_numbers) and don't forget to add your names and class.
- Download your program: click on the white page button and select Export summary... and save (download) it as html document (untitled.html) to Descargas. Go to Descargas and rename the file: odd&even_numbers.html.
- Upload your programs to Classroom/Unit1/Programs3.