C# Programs

C# Conditional Statement :-


























2. Primitive Data types & Variales 




1) Declare five variables choosing for each of them the most appropriate of the types byte, sbyte, short, ushort, int, uint, long, ulong to represent the following values: 52130, -115, 4825932, 97, -10000.



2) Which of the following values can be assigned to a variable of type float and which to a variable of type double: 34.567839023, 12.345, 8923.1234857, 3456.091?







C# : Console Input / Output











Operators Expression & Statements







C# Text Files












4) Write a program that compares two text files line by line and prints
the number of lines that are the same and the number of lines that are different.
Assume the files have equal number of lines.?
 




























No comments:

Post a Comment