Lecture 13 - CNIT 155 Lecture13 Arithmetic in C# Lab05 is...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CNIT 155 Lecture13 Arithmetic in C# Lab05 is posted Read Chap03 & Chap04 Announcements More data types Reference type VS Value type Variables Declaration Assigning value to variables Getting users input Parse() method Displaying numbers ToString() method Arithmetic operators Translating formulas to C# Objectives Display Hello, World! in 2 lines In a Label: lblShow.Text = Hello + \n + World!; In a Textbox: txtShow.Text = Hello + \r\n + World!; txtShow.Text = Hello + Environment.NewLine + World!; \r\n Carriage return, line feed Add one more line to the text in the textbox: txtShow.Text = txtShow.Text + \r\n + one more line.; To add to existing text: Data types for whole numbers: Byte, short, int, long Data types for real numbers: float, double, decimal (for money)....
View Full Document

This note was uploaded on 03/04/2012 for the course CNIT 155 taught by Professor Guityravai during the Spring '12 term at Purdue University-West Lafayette.

Page1 / 22

Lecture 13 - CNIT 155 Lecture13 Arithmetic in C# Lab05 is...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online