Thursday, March 17, 2022

c# variables


using System;

namespace HelloWorld

{


    public class lecture

    {

        public int age;//This is the variable type of integer


        //entry point of the our program

        public static void Main(string[] args)

        {

            int age = 15;

            string name = "srilatha";

            float p = 15.4f;

            bool is_working = true;

            char c = 'a';



            Console.WriteLine(age);

            Console.WriteLine(name);

            Console.WriteLine(p);

            Console.WriteLine(c);

            Console.WriteLine(is_working);



            Console.Read();

        }

    }

}




output:

15

srilatha

15.4

a

True

No comments:

Post a Comment

python class topic video