C# Programming Examples of Variables and Data types.

example
In this chapter you will learn:

  • How to use data types and variables in a program?
Qu 1: Write a program in which accepts user’s details as name, city, age and pin number. Then store all the values in the appropriate variable and then print all the information in correct format.
Answer




  • Output

    Enter your name :   Steven Clark

    Enter Your City :   California

    Enter your age :   37

    Enter your pin :  95012

    =================================================
    Your Complete Address:
    =================================================

    Name = Steven Clark
    City = California
    Age = 37
    Pin = 95012
    =================================================
    __

    Summary

    In this chapter you learned about how to use data types in C# programming to create variable. In next chapter there are some programming exercises for you. It is recommended you to do all the Exercises honestly.


    One thought on “C# Programming Examples of Variables and Data types.”

    Leave a Reply

    Your email address will not be published. Required fields are marked *