Technology Guruu

  • Home
  • Site Info
    • About Us
    • Disclaimer
    • Privacy Polacy
  • Home
  • Digital Marketing
    • SEO
    • SMM
    • SEM
  • Quotes
  • Technical
  • Java
  • .Net
    • C#.Net
    • ASP.Net
  • Keychains

Saturday, 2 April 2016

Top 7 Simple Programs For New Learners

 Akansha     18:00:00     TechnicalQuestions     No comments   

who learn the C#.net this programs are helpful to Understand C#.net better.

Simple Programs For New Learners

program
programs

1. Write a console program to print welcome message?

class Program
{
 static void Main(string[] args)
{
Console.WriteLine("Welcome to C#.Net");
Console.ReadLine();
}
}

OUTPUT:Welcome to C#.Net

  *****Technical C#.net Questions*****

2. Write a console program to print 3 welcome messages?

class Program
{
 static void Main(string[] args)
{
Console.WriteLine("Welcome to C#.Net");
Console.WriteLine("Welcome to ASP.Net");
Console.WriteLine("Welcome to ADO.Net");
Console.ReadLine();
}
}

OUTPUT:Welcome to C#.Net

                  Welcome to ASP.Net

                  Welcome to ADO.Net


          *****Technical C#.net Questions*****                         

3. Write a console program to print one string value and one numerical value?

class Program
{
 static void Main(string[] args)
{
Console.WriteLine("Rahul");
Console.WriteLine(25);
Console.ReadLine();
}
}

OUTPUT: Rahul

                   25


  *****Technical C#.net Questions*****

4.Write a console program to declare one string value and one numerical value?

class Program
{
 static void Main(string[] args)
{
string name="Rahul";
byte age=25;
Console.WriteLine(name);
Console.WriteLine(age);
Console.ReadLine();
}
}

OUTPUT: Rahul

                   25

  *****Technical C#.net Questions*****

5.Example to display variable values with userdefined strings?

class Program
{
 static void Main(string[] args)
{
string name="Rahul";
byte age=25;
Console.WriteLine("Your Name is:"+name);
Console.WriteLine("Your Age is:"+age);
Console.ReadLine();
}
}

OUTPUT: Your Name is: Rahul

                   Your Age is: 25


  *****Technical C#.net Questions*****

6. Write a console program to display employee info i.e., employee no, employee name, employee salary?

class Program
{
 static void Main(string[] args)
{
employee no=123;
employee name="Ganesh";
employee salary=25000;
Console.WriteLine("Employee No is:"+no);
Console.WriteLine("Employee Name is:"+name);
Console.WriteLine("Employee Salary is:"+age);
Console.ReadLine();
}
}

OUTPUT:Employee No is: 123

                  Employee Name is: Ganesh

                  Employee Salary is: 25000 

  *****Technical C#.net Questions*****

7. Write a console program to store student marks,They are m1,m2,m3.Calculate total marks and average marks and finally display?

class Program
{
 static void Main(string[] args)
{
int m1=60;
int m2=70;
int m3=80;
int totmar=m1+m2+m3;
int avgmar=totmar/3;
Console.WriteLine("Student total marks are:"+totmar);
Console.WriteLine("St);udent average marks are:"+avgmar);
Console.ReadLine();
}

}

OUTPUT:Student total marks are: 210

                  Student average marks are:70

  *****Technical C#.net Questions*****


C#.net
Share With Your Friends in Social Media (Facebook, Twitter, Google Plus Etc...) if You Like Our Content And Feel Free To Comment.
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Popular Posts

  • Missing My Friend Quotes : Friendship Day Quotes 2017
    Friends today my article about missing friends and moments with them. Here you are seen the best friendship quotes and some  feelings when...
  • Love Failure Quotes and Sad valentines day Quotes
    We Love Someone is a easy process sometime takes long time to love someone love others within short period but anyway always love dependin...
  • Brief description about Delegates
    Introduction about delegates and why delegates are came the main purpose of delegates how to useful and what are the advantages and disadv...
  • Na Tanu Samjhawan Ki Song lyrics
    Na Tanu Samjhawan Ki Song Lyrics With English Translation Movie : Humpty Sharma ki Dulhaniya Song : Samjhawan Song Singer : Arijit ...
  • Detail Introduction about C#.Net
    Brief Introduction about C#.Net  Introduction C#.Net is the one of the Programming Language the .Net Framework also contains ano...
  • Wonderful sayings about Life.
    I Believe Follow  Things(Life Quotes) I Believe I believe: ********** Believe in Life ********** That we don't have to chan...
  • Brief Description about Multicast Delegate
    Multicast delegate is an extension of normal delegate. It helps you to point more than one method at a single moment of time. Multicast ...
  • Brief description about properties
    Properties in C#.Net Properties Property is a member of a class which we will use to assign the value to a variable as well as whi...
  • Top 10 valentine's day Quotes and Greetings wishes
    All Lovers have Anxiety in Valentines day because it is a festival to all lovers in these they enjoy a lot and celebrate the Valentine...
  • Valentines day poems and wishes or Quotes
    A friendship that like love is warm; A love like friendship, steady.we are having the most difference between love and Friendship you mus...

Categories

  • Entertainment (67)
  • TechnicalQuestions (58)
  • Quotes (11)
  • C#.Net (8)
  • Java (8)
  • ValentinesDay (4)
  • SEO (3)
  • Home
  • About Us
  • Disclaimer
  • Privacy Policy
  • Sitemap

Copyright © 2015-2017 Good Friends 5.All Rights Reserved• And Our Sitemap • All Logos and Trademark Belongs To Their Respective Owners•