Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Student_Information
- {
- class Program
- {
- static void Main(string[] args)
- {
- // Input: name, age, grade --> Output in following format: " Name: {name}, Age: {age}, Grade: {grade} "
- 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}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment