Reverse a number


Code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace reverse_number
{
    class Program
    {
        static void Main(string[] args)
        {
            int n, t, r, rev = 0;
            Console.WriteLine("Enter any number");
            n = Int32.Parse(Console.ReadLine());
            t = n;
            while (t > 0)
            {
                r = t % 10;
                t = t / 10;
                rev = rev * 10 + r;
            }
            Console.WriteLine("Reverse of number::{0}", rev);
           
            Console.ReadLine();
        }
    }
}


Output:





Continue Reading

lenght of Given String


code:

#include<iostream>
#include<conio.h>
#include<stdio.h>

using namespace std;

void main()
{
       char str[100];
       int lenth=0;
       cout<<"enter string : ";
       cin.get(str,100);
       for(int i=0;str[i]!='\0';i++)

       {
              lenth++;
       }
       cout<<"the length of string  :"<<lenth;
     
  getch();
}


output:



Continue Reading

To Calculate the Frequency of given string

Code:
#include<iostream>
#include<conio.h>
#include<stdio.h>
using namespace std;

void main()
{
       char str[100], ch;
   int i, fre= 0;

   cout<<"Enter a string: ";
   gets(str);

   cout<<"Enter a character to find the frequency:";
   cin>>ch;

   for(i = 0; str[i] != '\0'; ++i)
   {
       if(ch == str[i])
           ++fre;
   }
cout<<"frequency of  "<<str<<"is:"<<fre;

   getch

Output:


Continue Reading

Attributes of HTML

The title Attribute

The heading name of the page is title and coded in <title> </title>

Example
<html>
 <head>
  <title>Home page</title>
 </head>
 <body>


 </body>
</html>

The href Attribute
 
To link the two pages use the href attribute in <a href=></a>

Example
<html>
 <head>
  <title>Home page</title>
 </head>
 <body>
<a href="jewellery.online.html">Home</a>

 </body>
</html>

Size Attribute
Images in HTML are defined with the <img> tag.
The filename of the source src, and the size of the image are defihe with width and height

Example

<html>
 <head>
  <title>Home page</title>
 </head>
 <body>

 <img src="image.jpg" width="200" height="200">

 </body>
</html>

Continue Reading

C# Program Working of Constructor in Inheritance

using system;

public class BaseClass  // This is the main class
{
    public BaseClass()
    {
        // statement of 1st Base class constructor
    }

    public BaseClass(int Age)
    {
        // statement of 2nd Base class constructor
    }

    // Other classes comes here
}

public class DerivedClass : BaseClass  //  inheriting the class here.

{
    public DerivedClass()
    {
        // statement of 1st DerivedClass constructor
    }

    public DerivedClass(int Age):base(Age)
    {
        // statement of 2nd DerivedClass constructor
    }

    // Other classes comes here
}
Continue Reading

C# Program of Polymorphism Using Virtual and Override keyword

using System;

namespace ConsoleApplication43
{
    class vehicle
    {
        public int doors = 6;
        public string color = "BLACK", model = "2017", engine = "D15 B";

        public vehicle()
        {

        }
        public vehicle(string color, string model, string engine, int door)
        {

            Console.WriteLine("Colour "+color);
            Console.WriteLine("Model is "+ model);
            Console.WriteLine("Engine is "+ engine);
            Console.WriteLine("There are " + doors + " doors\n");
        }

     
        public virtual int calculatespeed()
        {
            return 0;
        }

        public class car : vehicle
        {
            public override int calculatespeed()
            {
                return (123+123)/10;
            }
        }

        public class bike : vehicle
        {
            public override int calculatespeed()
            {
                return (3 * 60) / 10;
            }
        }
     
     
    class Program
        {
            static void Main(string[] args)
            {
                vehicle Obj = new vehicle("Black","2017","D15B",4);
                car Obj1 = new car();
                bike Obj2 = new bike();
                Console.WriteLine("the speed of car is {0}",Obj1.calculatespeed());
                Console.WriteLine("the speed of bike is {0}",Obj2.calculatespeed());
                Console.ReadLine();
               
            }
        }
    }
}
Continue Reading

C++ Program To Create Your Own Header File

//Code .Cpp

#include<iostream>
#include"header.h" //Initialize header file which is created by any name

using namespace std;

void main()
{
int a=12,b=24,i=23,j=34,k=32,l=24,x=55,y=43;
int sum=0,sub=0,mul=0,div=0;

sum=add(a,b);
sub=subs(i,j);
mul=mull(k,l);
div=divv(x,y);
cout<<"Calculation\n\n";
cout<<"Sum is            :"<<sum<<endl;
cout<<"Subtracrion is    :"<<sub<<endl;
cout<<"Multiplication is :"<<mul<<endl;
cout<<"division is       :"<<div<<endl;

system("pause");
getchar();
}

//Code .header,h

#include<stdlib.h>

int add(int a,int b)
{
return a+b;
}
int subs(int i,int j)
{
return i-j;
}
int mull(int k,int l)
{
return k*l;
}
int divv(int x,int y)
{
return x/y;
}

Continue Reading

C# Program of Constructor & Destructor Using Inheritance

using System;
class A
{
    public A()
    {
        Console.WriteLine("Creating A");
    }
    ~A()
    {
        Console.WriteLine("Destroying A");
    }
}

class B : A
{
    public B()
    {
        Console.WriteLine("Creating B");
    }
    ~B()
    {
        Console.WriteLine("Destroying B");
    }

}
class C : B
{
    public C()
    {
        Console.WriteLine("Creating C");
    }

    ~C()
    {
        Console.WriteLine("Destroying C");
    }
}
class App
{
    public static void Main()
    {
        C c = new C();
        Console.WriteLine("Object Created ");
        Console.WriteLine("Press enter to Destroy it");
        Console.ReadLine();
        c = null;
        //GC.Collect();
        Console.Read();
    }

}
Continue Reading

C# Program Using Get Set Function

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace getset
{
public class information
    {
private string name="John";
public string NAME
        {
get
            {
return name;
            }
set
            {
                name = value;
            }
        }
    }
class Program
    {
static void Main(string[] args)
        {
information stu = new information();
Console.WriteLine("Member is : {0}",stu.NAME);
Console.ReadLine();
        }
    }
}

Continue Reading

C# Program of Displaying Different Vehicle Information

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication19
{
    class Information
    {
        string name;
        string location;
        int model;
        int speed;
        int weight;

        public Information(string name, string location)
        {
            this.name = name;
            this.location = location;
            Console.WriteLine("Bicycle Information");
            Console.WriteLine("Name : " + name);
            Console.WriteLine("Location : " + location);
        }
        public Information(string name, int model, int speed)
        {
            this.name = name;
            this.model = model;
            this.speed = speed;
            Console.WriteLine("Car Information");
            Console.WriteLine("Name : " + name);
            Console.WriteLine("Model : " + model);
            Console.WriteLine("Speed : " + speed);
        }
        public Information(string name,int model,int weight,int speed)
        {
            this.name = name;
            this.model = model;
            this.weight = weight;
            Console.WriteLine("Lorry Information");
            Console.WriteLine("Name : " + name);
            Console.WriteLine("Model : " + model);
            Console.WriteLine("Weight : "+weight);
            Console.WriteLine("Speed : "+speed);
        }

        static void Main(string[] args)
        {
            Console.WriteLine("==============");
            Information bicycle = new Information("Honda", "USA");
            Console.WriteLine("\n==============");
            Information car =new Information("Mercedes",7550,1550 );
            Console.WriteLine("\n==============");
            Information lorry = new Information("HYUNDAI", 2017, 20000,550);
            Console.ReadLine();
        }
    }
}

Continue Reading

C# program of Employee Information using Inheritance

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication21
{
    class citizen
    {
        string ID = "1423-85478-Z";
        string name = "ABC";

        public void GetPersonalInfo()
        {
            Console.WriteLine("ID {0}" + ID);
            Console.WriteLine("Name {0}" + name);
        }
    }
    class employee:citizen
    {
        string companyName = "Technology Group Inc";
        string companyID = "ENG-RES-101-C";

    public void GetInfo()
    {
        Console.WriteLine("Citizen's Information");
        GetPersonalInfo();
        Console.WriteLine("\nJob Information");
        Console.WriteLine("Company Name {0}",companyName);
        Console.WriteLine("Company ID {0}",companyID);
    }
    }
    class MainClass
    {
        static void Main(string[] args)
        {
            employee E = new employee();
            E.GetInfo();


        }
    }
}

Continue Reading

C# simple using simple if else statement

using System;

namespace blog
{
    public class student_entry
    {
         
            public char information;
            public void get_info()
            {

                Console.WriteLine("*************Uniform and Id_card is important IF you want TO attend the class***************");
                Console.WriteLine("ENTER | Y | if you have both && | n | if dont have");
                information = Convert.ToChar(Console.ReadLine());
            if(information == 'Y')
            {
           
            Console.WriteLine("you are able to attend the class");
         
         
         
            }
            else
                {
         
            Console.WriteLine("sorry you are not able to attent the class");
         
            }
         
            }
            static void Main(string[] args)
            {
               student_entry obj=new student_entry();
                obj.get_info();
             
                Console.ReadKey();
            }
        }
    }

OUTPUT

 


Continue Reading

Using arrays of char and pointers to char

#include <iostream>
using namespace std;
int main()
{
cout << "Demonstrating arrays of char "
<< "and pointers to char.\n"
<< endl;
char text[] = "Good morning!",
name[] = "Bill!";
char *cPtr = "Hello "; // Let cPtr point
// to "Hello ".
cout << cPtr << name << '\n'
<< text << endl;
cout << "The text \"" << text
<< "\" starts at address " << (void*)text
<< endl;
cout << text + 6 // What happens now?
<< endl;
cPtr = name; // Let cPtr point to name, i.e. *cPtr
// is equivalent to name[0]
cout << "This is the " << *cPtr << " of " << cPtr
<< endl;
*cPtr = 'k';
cout << "Bill can not " << cPtr << "!\n" << endl;
return 0;
}
Continue Reading

C# Bank account using single Inheritance...

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace inheritance_1
{
    class bank_account
    {
        public float account_balance=0;
        public float deposit,amount;
        public float withdraw,remaining;
     
        public void credit()
        {
            Console.WriteLine("enter the amount you want to deposit");
            deposit = float.Parse(Console.ReadLine());
            amount = account_balance + deposit;
            Console.WriteLine("your account balance is {0}:",amount);
     
       }
           
        public void debit()
        {
            if (account_balance >= withdraw)
            {
                Console.WriteLine("enter the amount you want too with draw");
                withdraw = float.Parse(Console.ReadLine());
                remaining = amount-withdraw;
                Console.WriteLine("your reamining amount is {0}", remaining);
            }
            else
            {
                Console.WriteLine("your account balance is not enough");
         
         
         
         
            }
        }
        public void getbalance() {


            Console.WriteLine("your final balance is {0}:",remaining);
     
        }


        class saving_accounts:bank_account
        {
         
            public float interest_rate;
         
            public void calculate_interest() {

                Console.WriteLine("my BANK PROVIDED YOU 5% intrest rate");
                interest_rate = (account_balance * 5) / 100;
                Console.WriteLine("YOUR Interest rate is {0}",interest_rate);
            }
     
     
     
        }
        class checking_account:bank_account {

            public float fee_charged=5;
            public float res;
            public void checking() {


                res = remaining - fee_charged;
                Console.WriteLine("your remaining balance after 5% fees transaction is : {0} ",res);

            }
         
     
     
     


           }
        static void Main(string[] args)
        {
            checking_account obj = new checking_account();
            obj.credit();
            obj.debit();
            obj.getbalance();
            saving_accounts obj2 = new saving_accounts();
            obj2.calculate_interest();
            obj.checking();
                Console.ReadKey();
        }
    }
}







Continue Reading

C# Program To Check Alphabet is Vowel or Not

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace vowell
{
    class Program
    {
        static void Main(string[] args)
        {
            start:
            string nm;
            int num;
            char ch;

            Console.Write("Enter The Character That is Vowel or Not :");
            nm=Console.ReadLine();
            num = Convert.ToChar(nm);

            if (num == 'A' || num == 'a' || num == 'E' || num == 'e' || num == 'I' || num == 'i' || num == 'O' || num == 'o' || num == 'U' || num == 'u')
            {
                Console.WriteLine("Alphabet is Vowel");
            }
            else
            {
                Console.WriteLine("Not Vowel");
            }
            Console.ReadLine();
            goto start;
        }
    }
}

Continue Reading

C++ Program To Shutdown Computer

#include<iostream>
#include<conio.h>


using namespace std;

void main()
{
char ch;

cout<<"Do yo want to shutdown your computer?(y/n)";
cin>>ch;

if(ch=='y'||ch=='Y')
{
system("C:\\WINDOWS\\System64\\shutdown/s");
}
else
{
exit (0);
}




getch();
}

Continue Reading

Basic Html Tags

Heading Tags

You can use different sizes of headings in your document. HTML also has six levels of headings, which use the elements <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. While displaying any heading, browser adds one line before and one line after that heading.
Example
<!DOCTYPE html>
<html>
<head>
<title>Heading Example</title>
</head>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
</body>
</html>


Paragraph Tag

<p> this tag use for paragraphs. Each paragraph of text should written in between opening <p> and a closing </p> tag as shown below.
Example
<!DOCTYPE html>
<html>
<head>
<title>Paragraph Example</title>
</head>
<body>
<p> A first paragraph.</p>
<p> A second paragraph.</p>
<p> A third paragraph.</p>
</body>
</html>

Line Break Tag

when you want to break the line in Html coding you can use this tag <br />  where you want to break the line.
Example
<!DOCTYPE html>
<html>
<head>
<title>Line Break  Example</title>
</head>
<body>
<p>Hello<br />
how are you<br />
I am fine<br />
how about you</p>
</body>
</html>

Centering Content

You can use <center> tag to put any content in the center of the page
Example
<!DOCTYPE html>
<html>
<head>
<title>Centring Content Example</title>
</head>
<body>
<p>without use center teg.</p>
<center>
<p>with center teg.</p>
</center>
</body>
</html>

Links

links are important for user to move one page to an other page 
                          <a href="home.html"> 
this line use to link the page
Example
<html>
 <head>
  <title>this is the title</title>
 </head>
 <body>
  <p>A link: h1><a href="http://www.asktocoders.blogspot.com"> html guide <h1/></a></p>
 </body>
</html>

Images

Adding your photos in web pages <img src="photo.jpg"> use this tage
Example
<html>
 <head>
  <title>this is the title</title>
 </head>
 <body>

  <p>An image: <img src="photo.jpg"> </p>

 </body>
</html>
Continue Reading

Program of filing to read and write

#include<iostream>
#include<fstream>
#include<conio.h>
#include<string>
using namespace std;
void writefile();
void readfile();
void main()
{
int choice;
cout << "Press 1 for Writing or 2 for Reading";
cin >> choice;
if (choice == 1)
{
writefile();
}
else
{
readfile();
}
getchar();
}
void writefile()
{
char filename[30];
string linee;
cout << " Enter File name with Extension and complete location...   ";
cin >> filename;
cout << "Enter data";
cin>> linee;
ofstream myfile(filename);
if (myfile.is_open() == true)
{
myfile << linee;
cout << " File Has been created ..... ";
myfile.close();
}
else
{
cout << " File not been Created... Contact Admin... ";
}
}
void readfile()
{
string line;
char filename[30];
cout << " Enter File name with Extension and location...   ";
cin >> filename;
ifstream myfile(filename);
if (myfile.is_open() == true)
{
while (getline(myfile, line))
{
cout << line;
}
myfile.close();
}
else
{
cout << " File is not ready for reading... or not present at specified destination....";
}
}


Continue Reading

object oriented programing basic concept using a simple program

#include <iostream>
#include<conio.h>

using namespace std;

class school
{
public:
float school_width;
float school_height;
int classrooms;
int teachers;
int students;
int sec_per_classes;
int labs;
int school_floors;
int playgrounds;
float school_area();
float school_tax();
double student_total_fee();
double total_income();
double teacher_salaries();
};

float school::school_area()
{
return(school_width*school_height);
}
float school::school_tax()
{
return((school_width*school_height)/5);
}
double school::student_total_fee()
{
return(students*5000);
}
double school::total_income()
{
return(students*5-teachers);
}
double school::teacher_salaries()
{
return(classrooms*teachers);
}

void main()
{
school aps;
cout<<"enter the length of school";
cin>>aps.school_width;
cout<<"enter the height of school";
cin>>aps.school_height;
cout<<"enter the class rooms in school";
cin>>aps.classrooms;
cout<<"enter the teachers in school";
cin>>aps.teachers;
cout<<"enter the students in school";
cin>>aps.students;
cout<<"enter the sec_per_classes in school";
cin>>aps.sec_per_classes;
cout<<"enter the labs in school";
cin>>aps.labs;
cout<<"enter the school_floors in school";
cin>>aps.school_floors;
cout<<"enter the playgrounds in school";
cin>>aps.playgrounds;

cout<<"area is" <<aps.school_area()<<"\n";
cout<<"skul tax is "<<aps.school_tax()<<"\n";
cout<<"fees is " <<aps.student_total_fee()<<"\n";
cout<<"income is" <<aps.total_income();
cout<<"salary is" << aps.teacher_salaries()<<"\n";


getch();
}


Continue Reading

Reads several lines of text and outputs in reverse order.

#include <iostream>
#include <string>
using namespace std;
string prompt("Please enter some text!\n"),
line( 50, '-');
int main()
{
prompt+="Terminate the input with an empty line.\n ";
cout << line << '\n' << prompt << line << endl;
string text, line; // Empty strings
while( true)
{
getline( cin, line); // Reads a line of text
if( line.length() == 0) // Empty line?
break; // Yes ->end of the loop
text = line + '\n' + text; // Inserts a new
// line at the beginning.
}
// Output:
cout << line << '\n'
<< "Your lines of text in reverse order:"
<< '\n' << line << endl;
cout << text << endl;
return 0;
}
Continue Reading

Simple Selection Sort Technique

#include <iostream>
#include<conio.h>
using namespace std;
void main()
{
int i,num,temp,array[100],j;
cout<<"Enter The Limit Of Number You Want To Sort:";
cin>>num;

for(i=0;i<num;i++)
{
cin>>array[i];
}
for(i=0;i<num;i++)
{
for(j=i+1;j<num;j++)
{
if(array[i]>array[j])
{
temp=array[i];
array[i]=array[j];
array[j]=temp;
}
}
}
for(i=0;i<num;i++){
cout<<"\n"<<array[i]<<endl;
}
getch();
}

Continue Reading

Tests an internal static variable

#include <iostream>
#include <iomanip>

using namespace std;

double x = 0.5,

fun(void);

int main()

{

while( x < 10.0 )

{

x += fun();

cout << " Within main(): "

<< setw(5) << x << endl;

}

return 0;

}

double fun()

{

static double x = 0;

cout << " Within fun():"

<< setw(5) << x++;

return x;

}

Continue Reading

Program of ascii code generation

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int ac = 32; // To begin with ASCII Code 32

// without control characters0
.
while(true)

{
 cout << "\nCharacter Decimal Hexadecimal\n\n";

int upper;

for( upper =ac + 20; ac < upper && ac < 256; ++ac)

cout << " " << (char)ac // as character

<< setw(10) << dec << ac

<< setw(10) << hex << ac << endl;

if( upper >= 256) break;

cout <<"\nGo on -> <return>,Stop -> <q>+<return>";

char answer;

cin.get(answer);

if( answer == 'q' || answer == 'Q' )

break;

cin.sync(); // Clear input buffer

}

return 0;

}

Continue Reading

Conversion Of Currency Using Control Flows

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
long euro, maxEuro; // Amount in Euros
double rate; // Exchange rate Euro <-> $
cout << "\n* * * TABLE OF EXCHANGE "
<< " Euro – US-$ * * *\n\n";
cout << "\nPlease give the rate of exchange: "
" one Euro in US-$: ";
cin >> rate;
cout << "\nPlease enter the maximum euro: ";
cin >> maxEuro;
// --- Outputs the table ---
// Titles of columns:
cout << '\n'
<< setw(12) << "Euro" << setw(20) << "US-$"
<< "\t\tRate: " << rate << endl;
// Formatting US-$:
cout << fixed << setprecision(2) << endl;
long lower, upper, // Lower and upper limit
step; // Step width
// The outer loop determines the actual
// lower limit and the step width:
for( lower=1, step=1; lower <= maxEuro;
step*= 10, lower = 2*step)
// The inner loop outputs a "block":
for( euro = lower, upper = step*10;
euro <= upper && euro <= maxEuro; euro+=step)
cout << setw(12) << euro
<< setw(20) << euro*rate << endl;
return 0;
Continue Reading

Marksheet Of Different Dipartments Using Concept Of Inheritance



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MarksSheet
{
    class computerScience
    {
        public int english, physics, maths, electronics;
        public int totalmarks, percentage;
        public void input()
        {
            Console.WriteLine("Enter Your Marks of English,Physics,Maths and Electronics Respectively :");
            english = Int32.Parse(Console.ReadLine());
            physics = Int32.Parse(Console.ReadLine());
            maths = Int32.Parse(Console.ReadLine());
            electronics = Int32.Parse(Console.ReadLine());

        }
        public void total()
        {
            totalmarks = english + physics + maths + electronics;
            Console.WriteLine("Total Marks are : {0}", totalmarks);
            percentage = (totalmarks * 100) / 500;
            Console.WriteLine("Percentage is : {0}%", percentage);


        }

    }

    class Electronics : computerScience
    {
        public int psychology;
        public void input1()
        {
            Console.WriteLine("Enter Your Marks of Psychology,Physics,Maths and Electronics Respectively :");
            psychology = Int32.Parse(Console.ReadLine());
            physics = Int32.Parse(Console.ReadLine());
            maths = Int32.Parse(Console.ReadLine());
            electronics = Int32.Parse(Console.ReadLine());

        }
        public void total1()
        {
            totalmarks = psychology + physics + maths + electronics;
            Console.WriteLine("Total Marks are : {0}", totalmarks);
            percentage = (totalmarks * 100) / 500;
            Console.WriteLine("Percentage is : {0}%", percentage);


        }
    }

    class civil : Electronics
    {
        public int Drawing;
        public void input2()
        {
            Console.WriteLine("Enter Your Marks of Drawing,Physics,Maths and Electronics Respectively :");
            Drawing = Int32.Parse(Console.ReadLine());
            physics = Int32.Parse(Console.ReadLine());
            maths = Int32.Parse(Console.ReadLine());
            electronics = Int32.Parse(Console.ReadLine());

        }
        public void total2()
        {
            totalmarks = Drawing + physics + maths + electronics;
            Console.WriteLine("Total Marks are : {0}", totalmarks);
            percentage = (totalmarks * 100) / 500;
            Console.WriteLine("Percentage is : {0}%", percentage);


        }
    }
    class BioInformatics : civil
    {
        public int MedicalTheory;
        public void input3()
        {
            Console.WriteLine("Enter Your Marks of MedicalTheory,Physics,Maths and Electronics Respectively :");
            MedicalTheory = Int32.Parse(Console.ReadLine());
            physics = Int32.Parse(Console.ReadLine());
            maths = Int32.Parse(Console.ReadLine());
            electronics = Int32.Parse(Console.ReadLine());

        }
        public void total3()
        {
            totalmarks = MedicalTheory + physics + maths + electronics;
            Console.WriteLine("Total Marks are : {0}", totalmarks);
            percentage = (totalmarks * 100) / 500;
            Console.WriteLine("Percentage is : {0}%", percentage);


        }
    }


    class Program
    {
        static void Main(string[] args)
        {
            BioInformatics obj = new BioInformatics();

            int choice;
            char y,n;
            start:
            Console.WriteLine("Enter Your Desire Choice\n1.Computer Science\n2.Electonics\n3.Civil\n4.BioImformatics\n5.Exit ");
            choice = Int16.Parse(Console.ReadLine());
            if (choice == 1)
            {
                obj.input();
                obj.total();
            }
            else if (choice == 2)
            {
                obj.input1();
                obj.total1();
            }
            else if (choice == 3)
            {
                obj.input2();
                obj.total2();
            }
            else if (choice == 4)
            {
                obj.input3();
                obj.total3();
            }
            else if (choice == 5)
            {
                System.Environment.Exit(0);
            }
            else
            {
                Console.WriteLine("Invalid Choice \n");
            }
            Console.ReadLine();
           // Console.WriteLine("Do You Want To Continue....?Y/N");
           //do
           //{
           //    goto start;
           //}

            goto start;
            

        }
    }
}

Output

 

Continue Reading