Tuesday, 3 March 2015

//Write a program to calculate the distance travelled by reading speed and time.
using System;
class program
{
    public static void Main()
    {
        int speed, time;
        Console.WriteLine("Enter the Speed : ");
        speed = Convert.ToInt32(Console.ReadLine());
        Console.WriteLine("Enter the Time : ");
        time = Convert.ToInt32(Console.ReadLine());
        dist d = new dist();
        d.distance(speed, time);
        Console.Read();
    }
}
class dist
{
    public void distance(int speed,int time)
    {
        int distance;
        distance = speed * time;
        Console.WriteLine("Distance Travelled : " + distance);
    }
}

Monday, 2 March 2015

// C# Program to Get a Number and Display the Sum of the Digits
    using System;
    class Program
        {
           public static void Main()
            {
                int num;
                Console.WriteLine("Enter a Number : ");
                num = Convert.ToInt32(Console.ReadLine());
                sum s = new sum();
                s.get(num);
            }
        }
        class sum
        {
            public void get(int num)
            {
                int sum = 0, r;
                while (num != 0)
                {
                    r = num % 10;
                    num = num / 10;
                    sum = sum + r;
                }
                Console.WriteLine("Sum of Digits of the Number : " + sum);
                Console.ReadLine();
            }
        }
//Write a program to generate the Factorial of a Given Number.
using System;
class a
{
        public void getdata(int n)
        {
                int i;
                int fact=1;
                i=1;
                while(i<=n)
                {
                        fact=fact*i;
                        i++;
                }
                Console.WriteLine(fact);
        }
}
class b
{
        public static void Main()
        {
            int n;
            Console.WriteLine("enter number");
            n = Convert.ToInt32(Console.ReadLine());
                a a1=new a();
                a1.getdata(n);
                Console.Read();
        }
}
// C#  Program to Generate Fibonacci Series
    using System;
       class Program
        {
           public static void Main()
            {
                int count;
                Console.Write("Enter the Limit : ");
                count = Convert.ToInt32(Console.ReadLine());
                fib f = new fib();
                f.get(count);
                Console.Read();
            }
        }
        class fib
        {
            public void get(int count)
            {
                int i, f1 = 0, f2 = 1, f3 = 0;
                Console.WriteLine(f1);
                Console.WriteLine(f2);
                for (i = 0; i <= count; i++)
                {
                    f3 = f1 + f2;
                    Console.WriteLine(f3);
                    f1 = f2;
                    f2 = f3;
                }
            }
       }

// C# Program to Perform all Basic Arithmetic Operations using interface
using System;
interface myinterface
{
    void addition(int a,int b);
    void multiplication(int a, int b);
    void division(int a, int b);
    void substraction(int a, int b);
}
class a : myinterface
{
    public void addition(int a,int b)
    {
        int result;
        result = a + b;
        Console.WriteLine("addition is : {0}",result);
       
    }
    public void multiplication(int a, int b)
    {
        int result;
        result = a * b;
        Console.WriteLine("multiplication is : {0}",result);
       
    }
    public void division(int a, int b)
    {
        int result;
        result = a / b;
        Console.WriteLine("division is : {0}",result);
       
    }
    public void substraction(int a, int b)
    {
        int result;
        result = a - b;
        Console.WriteLine("substraction is : {0}",result);
       
    }
}
class program
{
        public static void Main()
        {
            int a,b;
            String option;
            Console.WriteLine("enter value");
            a=Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("enter value");
            b=Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("1.Addition");
            Console.WriteLine("2.multiplicaition");
            Console.WriteLine("3.divition");
            Console.WriteLine("4.subtraction");
            option =(Console.ReadLine());
              a a1 = new a();
            switch(option)
            {
                case"1":
                  a1.addition(a,b);
                break;
                case "2":
                a1.multiplication(a, b);
                break;
                case "3":
                a1.division(a, b);
                break;
                case "4":
                a1.substraction(a, b);
                break;
                 default:
                Console.WriteLine("invalid option");
                break;
        }
        Console.Read();
    }
}
 // C# Program to Check Whether the Entered Number is an Armstrong Number or Not
  using System;
  class Program
        {
           public static void Main()
            {
                int number;
                Console.Write("enter the Number : ");
                number = Convert.ToInt32(Console.ReadLine());
                ams a = new ams();
                a.getvalue(number);
                Console.Read();

            }
         }
    class ams
    {
        public void getvalue(int number)
        {

            int  remainder, sum = 0;
            for (int i = number; i > 0; i = i / 10)
            {
                remainder = i % 10;
                sum = sum + remainder * remainder * remainder;
            }
            if (sum == number)
            {
                Console.Write("Entered Number is an Armstrong Number");
            }
            else
            {
                Console.Write("Entered Number is not an Armstrong Number");
            }
        }

    }

 

Thursday, 6 June 2013

micromax-a87-pattern-lock-solution


micromax-a87-pattern-lock-solution

try this and post result


  • Press & Hold Volume UP + Power On/Off
  • It'll Show Android Logo With Exclamation Mark
  • Select Wipe data/factory reset By Volume Up Key
  • Then Press Power On/Off Key For Select
  • Then Press Volume Up Key For : Yes -- delete all user data
  • Then Again Press Power On/Off Key For Select
It'll Show Like This


--Wiping Data...
Formatting /data...
Formatting / cache...
Data wipe complete.



Then Select reboot system now & Press On/Off Key

After Rebooting Cellphone Will Start Without Any Problem.