Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace StudentInformation
- {
- class Program
- {
- static void Main(string[] args)
- {
- string name = Console.ReadLine();
- int age = int.Parse(Console.ReadLine());
- double grade = double.Parse(Console.ReadLine());
- Console.WriteLine($"Name: {name}, Age: {age}, Grade: {grade:F2}");
- }
- }
- }
- Bad practice!
- using System;
- namespace KeepCalm
- {
- class Program
- {
- static void Main()
- {
- Console.WriteLine($"Name: {Console.ReadLine()}, Age: {Console.ReadLine()}, Grade: {Console.ReadLine()}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement