Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Friday, 16 June 2017

भारत बनाम पाकिस्तानी फाइनल - आईसीसी चैंपियंस ट्रॉफी, भारत टीम के मैच जीतने के बाद आप क्या करेंगे? अपनी कहानी पोस्ट करें और अद्भुत उपहार प्राप्त करें

भारतीय बल्लेबाज रोहित और विराट कोहली ने बांग्लादेश को हराया और अब टीम इंडिया फाइनल में पहुंच गई। भारत नौ विकेट से जीता।


भारत-पाकिस्तान क्रिकेट मैच दुनिया के सबसे तीव्र खेलों में से एक है। भारत - पाकिस्तान क्रिकेट मैच का अनुमान लगाया गया है कि अरबों दर्शकों को आकर्षित किया जाए




फिर से इतिहास दोहराता है, मैदान में टीम भारत रविवार फाइनल में (18 जून 2017) 3:00 पर ओवल, लंदन में टीम पाकिस्तान का सामना करना पड़ता है।



पाकिस्तान के खिलाफ मैच जीतने पर आप पहली बार क्या कर रहे हैं?

अपने तरीके से अपने जवाब की टिप्पणी करें और उपहार / वाउचर / कूपन जीतें। * 🎁👕👓


आईसीसी चैंपियंस ट्रॉफी से नवीनतम अपडेट के लिए यहां पर क्लिक करें

* टीएनसी
# इंडवस्पक # चैंपियनस्ट्रॉफी #Indvspak


Read More »

India vs Pakistan final - ICC Champions Trophy, Post your after match winning story and get amazing gifts.

Indian batsman Rohit and Virat Kohli beat Bangladesh and now Team India reach in final. India won by nine wickets.



The India- Pakistan cricket match is one of the most intense sports in the world. India - Pakistan cricket match has been estimated to attract up to billions of viewers.



Again History repeats, in the arena Team India faces Team Pakistan in finals on Sunday (18th June 2017) at 3:00 PM in The Oval, London.

What is the first thing you do when India wins the match against Pakistan?

Comment your answer in your crazy😉 way and win the Gifts/Vouchers/Coupons.*🎁👕👓

For the latest update from ICC Champions Trophy Click here

* TNC
#Indvspak #championstrophy


Read More »

Sunday, 28 May 2017

Abhilasha "An Unconditional love"I Best Short Flim

Abhilasha is a story of a boy who never expresses his feeling for her love but he writes his feelings in their diary which makes you emotional.

Follow us: www.liveviar.com/ www.imaginationhunt.com/ https://www.youtube.com/watch?v=hjLyXUL9BUU

Genre: Romantic Drama




Follow us :www.liveviar.com/ www.imaginationhunt.com

Genre: Romantic Drama

TEAM Liveviar PROJECTS

Cast -
Sandeep
Shalini
Ritika
Praveen
NItin
Ashit
Manish
Anupam

Produced By: Liveviar Projects (Nitin Gautam, Aakash Sharma)

Director & Editor: Ashit Rajan & NItin Gautam

Story : Ashit Rajan

Very Special Thanks: Dr. A.K. Kundaliya & Dr. Neelam Kundaliya
Read More »

Friday, 26 May 2017

Number series tricks Part-3

Read More »

Wednesday, 24 May 2017

String based program


String program #14 (code to create string contain atleast 2 alphabet, 2 number, 2 special length, min 8 using regex)

Enter String: P4%_$23aTsU/
O/p: -
Perfect string matching all criteria

The program for the string is written in C# programming language and will accept a password as input. The logic is to check whether password contain 2 alphabet, 2 number, 2 special characters and minimum password of 8.
 
String based program

Note: If you are new to C# and Console Application. Try to code First C# Program

Note: Read articles on how to use Loops and Conditions.

Let’s find out a simple and easy way to code the program.

Practical Implementation:

using System;
using System.Text.RegularExpressions;

namespace patternProblem.String
{
    class String14 //check string contain atleast 2 alphabet, 2 number, 2 special length, min 8 using regex
    {
        public static void Main()
        {
            //string str = "Tes$f_use2d1";
            Console.Write("Enter String:");
            string str = Console.ReadLine();

            string strAlphabeRegex = "(?=(.*[a-zA-Z]){2})";
            string strNumberRegex = "(?=(.*[0-9]){2})";
            string strSpecialCharRegex = @"(?=(.*[`!@#$%\^&*\-_=\+'/\.,]){2})";
            string strMainPattern = @"(?=(.*[a-zA-Z]){2})(?=(.*[0-9]){2})(?=(.*[`!@#$%\^&*\-_=\+'/\.,]){2})(?=^.{8,15}$)";

            //Using Regex
            if (Regex.IsMatch(str, strAlphabeRegex))
            {
                if (Regex.IsMatch(str, strNumberRegex))
                {
                    if (Regex.IsMatch(str, strSpecialCharRegex))
                    {
                        if (Regex.IsMatch(str, strMainPattern))
                        {
                            Console.WriteLine("Perfect string matching all criteria");
                        }
                        else
                        {
                            Console.WriteLine("String length should be 8 to 15");
                        }
                    }
                    else
                    {
                        Console.WriteLine("String must contain atleast 2 special characters");
                    }
                }
                else
                {
                    Console.WriteLine("String must contain atleast 2 numbers");
                }
            }
            else
            {
                Console.WriteLine("String must contain atleast 2 characters");
            }
        }
    }
}

Output:
The input string1 here is password. So, based on the input, program will check whether string1 contain searched string. The output is shown below:

Enter String: P4%_$23aTsU/
Perfect string matching all criteria
Press any key to continue . . .


For any query, comment us below.

Skip to Main Table String based program

Previous - String based program #13


Click imagination hunt to read latest blogs.


Keep learning and sharing...
Read More »

Tuesday, 23 May 2017

String based program

String program #13 (Check all characters in string 2 is contained in string1)

Enter string1: imagination
Enter string2: sarcastical
O/p: -
String2 doesnot contain all characters of string1

The program for the string is written in C# programming language and will accept two strings as input. The logic is to check all characters of string1 is contained in string2.
 
string based program by imagination hunt
String based program

Note: If you are new to C# and Console Application. Try to code First C# Program

Note: Read articles on how to use Loops and Conditions.

Let’s find out a simple and easy way to code the program.

Practical Implementation:

using System;
using System.Text;

namespace patternProblem.String
{
    class String13          //check all characters in string 2 is contained in string1  
    {
        public static void Main()
        {
            Console.Write("Enter string1: ");
            string str1 = Console.ReadLine();
            Console.Write("Enter string2: ");
            string str2 = Console.ReadLine();

            int count = 0;
            StringBuilder strCharMatched = new StringBuilder();

            for (int i = str2.Length - 1; i >= 0; i--)
            {
                for (int j = 0; j <= str1.Length - 1; j++)
                {
                    if (str2[i] == str1[j])
                    {
                        strCharMatched.Append(str2[i]);
                        strCharMatched.Append(",");
                        count++;
                        break;
                    }
                }
            }

            if (str2.Length == count)
            {
                Console.WriteLine("String2 contain all characters in string1");
                Console.WriteLine("All characters that are matched: {0}", strCharMatched);
            }
            else
            {
                Console.WriteLine("String2 doesnot contain all characters in string1");
            }
        }
    }
}

Output:
Based on the input, program will check whether string2 contain all characters in string1. The output is shown below:

Enter string1: imagination
Enter string2: namingition
String2 contain all characters of string1

Enter string1: imagination
Enter string2: sarcastical
String2 doesnot contain all characters of string1

Enter string1: liveviar
Enter string2: rivale
String2 doesnot contain all characters of string1
Press any key to continue . . .


For any query, comment us below.

Skip to Main Table String based program

Previous - String based program #12

Next – String based program #14

Click imagination hunt to read latest blogs.


Keep learning and sharing...
Read More »

Featured post

Think that makes you rich and richer

 Napolean said: “You can think and grow rich, but if you can be brought up like most people with work and you won't starve, this wil...