This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class p331 | |
{ | |
static void Main(string[] args) | |
{ | |
double height; | |
double weight; | |
double BMI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace p739 | |
{ | |
class p739 | |
{ | |
static void Main(string[] args) | |
{ | |
while (true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Problem 8.12 Duplicate Elimination | |
// Use one-dimensional array that inputs five numbers | |
using System; | |
class p812 | |
{ | |
static void Main() | |
{ | |
int[] numbers = new int[5]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TicTacToe program | |
using System; | |
class p1010 | |
{ | |
private int[,] board = new int[3, 3]; | |
public p1010() //constructor | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TicTacToe Test program | |
using System; | |
class p1010test | |
{ | |
static void Main(string[] args) | |
{ | |
p1010 game = new p1010(); |