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

  • 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...
  • How do I increase organic traffic within One Month
    There’s plenty you can do boost organic site traffic at no cost except your time: Optimize for your personas, not search engines.  ...
  • Top Most Differences between windows,web and console applications
    You want to get clarity on any topic the differences very helpful at that time and in these we are having top 5 differences between conso...
  • 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 ...
  • How to Remove Audio From Any Video Using VLC Media Player?
    Step by Step Procedure for  Remove(Mute) Audio in a Video Using VLC  Player A picture is worth a thousand words and a video is worth a t...
  • Best Methods To Get A Cheap Home Insurance Deal!
    Cheap Home Insurance Home Insurance is seen as a luxury but in all honesty it is a necessity especially in the case of natural disast...
  • Connected and Disconnected Data Access Architecture
    The Ado.Net Frame Work Supports Two Models of Data Access Architectures one is Connected Oriented architecture and second One is Disconnec...
  • Best Good Afternoon wishes greetings and quotes
    Top Most Good Afternoon Wishes Good Afternoon wishes are gives a relaxation in afternoon time.This wishing can be done between 12 to 3 p...
  • 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...
  • INTERESTING PSYCHOLOGICAL FACTS ABOUT GIRLS Love In Valentines Day
    Girls Love And Caring Love feelings are very interesting to every one and moreover girls feelings are very interesting and amazing a...

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•