Use byte

image_pdfimage_print

/*
C#: The Complete Reference
by Herbert Schildt

Publisher: Osborne/McGraw-Hill (March 8, 2002)
ISBN: 0072134852
*/
// Use byte.

using System;

public class Use_byte {
public static void Main() {
byte x;
int sum;

sum = 0;
for(x = 1; x <= 100; x++) sum = sum + x; Console.WriteLine("Summation of 100 is " + sum); } } [/csharp]

This entry was posted in Data Types. Bookmark the permalink.