CODE:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Muhammad Ali
{
class Program
{
static void Main(string[] args)
{
string name, fathername, age, hobbies, siblings,
university, favouritecricketer, percentage, Caste ,Quotation;
Console.WriteLine("please
enter your name");
name = Console.ReadLine();
Console.WriteLine("please
enter your fathername");
fathername = Console.ReadLine();
Console.WriteLine("please
enter your age");
age = Console.ReadLine();
Console.WriteLine("please
enter your hobbies");
hobbies = Console.ReadLine();
Console.WriteLine("please
enter your siblings");
siblings = Console.ReadLine();
Console.WriteLine("please
enter your University");
university = Console.ReadLine();
Console.WriteLine("please
enter your favouritecricketer");
favouritecricketer = Console.ReadLine();
Console.WriteLine("please
enter your Percentage");
percentage = Console.ReadLine();
Console.WriteLine("please
enter your caste");
Caste = Console.ReadLine();
Console.WriteLine("please
enter your Quotation");
Quotation = Console.ReadLine();
Console.Write("your
name is {0} your father name is {1} your age{2} your hobbies {3} your siblings
{4} your university {5} your favourite cricketer {6} your percentage {7} Your
caste {8} Your quotation {9}",name,fathername,age,hobbies,siblings,university,favouritecricketer,percentage,Caste,Quotation);
}
}
}
OUTPUT:
ALGORITHM:
- · Start,
- · Initializing: Stringname,fathername,age,hobbies,siblings,university,favouritecricketer,percentage,caste,Quotation
- · Output: Please enter your Name
- · Set name: Taking input from the user
- · Output: Please enter your Father Name
- · Set father name: Taking input from the user
- · Output: Please enter your age
- · Set age: Taking input from the user
- · Output: Please enter your hobbies
- · Set hobbies: Taking input from the user
- · Output: Please enter your siblings
- · Set siblings: Taking input from the user
- · Output: Please enter your university
- · Set university: Taking input from the user
- · Output: Please enter your favourite cricketer
- · Set favouritecricketer: Taking input from the user
- · Output: Please enter your percentage
- · Set percentage: Taking input from the user
- · Output: Please enter your caste
- · Set caste: Taking input from the user
- · Output: Please enter quotation
- · Set date: Taking input from the user
- · Output: Result
- · End
No comments:
Post a Comment