Thursday, 23 July 2015

How to Check my Mobile Number

Network Provider
Dial Code
Idea
*789# or *100# or *1# *147# *131# or *131*1#
Vodafone
*555# or *555*0# or *111*2# or *777*0# or *131*0#
Airtel
*140*175 or*140*1600# or *121*9# or *282#  *141*123#
Aircel
*1# or *234*4# or *888# or *122*131# or *131#
Reliance
*1# *111#
Bsnl
*1# or *99# or *222#
Tata Docomo
*1#  or *580# or *124#
Videocon
*1# 
Virgin
SMS:  NUM to 51230 or *1#
Uninor
*555# *1# *444# 
Loop
*222# *1# *001#
MTNL
*8888#
Smart
*1# *111*2#
BPL 
*222# *1# *001#

Note: The codes in green colour are successfully verified .
There are situations when we have to recharge our number but we do not know it. Simply dial above codes from your mobile and see the screen for output.

Sunday, 3 May 2015

//This program illustrates the working of goto

//This program illustrates the working of goto
using System;
namespace ProfTyagi
{
    class demogoto
    {
        static void Main(string[] args)
        {
            int a = 0;
        start:
            Console.WriteLine(a);
        a++;
        if (a < 5)
            goto start;
        }
    }
}



Tuesday, 28 April 2015

//This program demonstrates the 'continue' statement
namespace ProfTyagi
{
    class democontinue
    {
        static void Main(string[] args)
        {
            int y = 0;
            for (int x = 1; x < 12; x++)
            {
                Console.WriteLine("x = " + x);
                Console.WriteLine("y = " + y);
                if ((x % 7) == 0)
                    continue;
                y++;
            }
            Console.WriteLine("Have you noticed the effect of continue");
        }
    }
}



Monday, 27 April 2015

//Program to illustrate break statement

namespace ProfTyagi
{
    class demobreak
    {
        static void Main(string[] args)
        {
            int a = 0;
            while (a < 10)
            {

                Console.WriteLine(a);
                a++;
                if (a == 5)
                    break;
            }
            Console.WriteLine("You have seen that as 'a' becomes 5 it comes out of while though vcondition is true at while test");
        }
    }
}