Test All Gadget, Z3X BOX Samsung, Miracle Box, Smart Phone Flash Tool, Stock ROMs, Android Tool, apps, Data Plans Internet

Selasa, 24 Desember 2013

C# Program to check number is prime or composite

C# Program to check number is prime or composite - discussing about technology is my hobby, with media blogs Test All Gadget we can share the knowledge of technology that continues to grow with various ways of use that is intended to simplify your life, now we will discuss first about that in your search that is C# Program to check number is prime or composite please refer to our explanation because we will try to make a complete article for you.

Articles : C# Program to check number is prime or composite
full Link : C# Program to check number is prime or composite
Article Csharp, Article programming, Article programs,

You can also see our article on:


C# Program to check number is prime or composite

C# Program to check entered number is prime or composite 

Program Statement:
Write a program that takes an integer as an input from user and prints if it is a prime or composite number.

Solution:
 static void Main(string[] args)
{
int num, i;
Console.WriteLine("Enter the number to check number is prime or composite");
num=Convert.ToInt32(Console.ReadLine());
i = 2;
while (i <= num - 1)
{
if (num % i == 0)
{
Console.WriteLine("composite number: "+num);
break;
}
i++;
}
if (i == num)
Console.WriteLine("prime number: " + num);
Console.ReadLine();

}




enough already articles C# Program to check number is prime or composite

hopefully the information C# Program to check number is prime or composite that we submit on this blog can be useful for your life and all the people who visit this blog.

you just finished reading the article with the title C# Program to check number is prime or composite if you intend to bookmark or shre please use the link https://testallforone.blogspot.com/2013/12/c-program-to-check-number-is-prime-or.html and do not visit other pages on this blog because it still sangant a lot of information about gadgets from the old to the latest.

Tag : , , ,
Share on Facebook
Share on Twitter
Share on Google+

Related : C# Program to check number is prime or composite

8 komentar:


  1. WELCOME TO OUR INSTITUTE

    AIDM is a premier institute in various digital marketing domains like SEO, SMO, PPC, ORM, Google Analytics, Email Marketing, Affiliate Marketing and Content Marketing.

    AIDM ADDRESS :- A-13, Mohan Park, Laxmi Nagar Delhi - 110092

    +91-9205903598
    Mon to Sat 9am to 6 pm

    info@aidm.org.in
    Send us your query anytime!

    BalasHapus
  2. SEO's power is visible when a consumer searches for products and services and for this we provide best
    SEO Course Delhi

    BalasHapus

  3. SEO Course Delhi I was actually captured with the piece of resources you have got here. Big thumbs up for making such wonderful Digital Marketing Course Delhi

    BalasHapus
  4. The finest cannabis detox drinks include vitamins and minerals that can help reduce THC levels in the body. One of the best detox drinks available in the market is the Mega Clean detox drink This is a liquid herbal supplement that aids in the removal of harmful toxins from the urinary, circulatory, and digestive systems. It’s a safe and nutritious way to cleanse your system and hydrate your body while also providing vitamins and minerals. This detox is a two-part program that provides you with a 5-hour detoxification zone during which the toxins in your urine are hidden and replaced with background nutrients. So, in addition to preventing THC from being released during that period, it also restores vital minerals in the urine, ensuring that it appears normal. This is necessary to avoid failing your exam owing to dilution.

    BalasHapus
  5. Satta KingI things and data online that you might not have heard before on the web.

    Hi, I found your site by means of Google

    indeed, even as searching for a comparative matter, your site arrived up, it is by all accounts incredible.

    bhai aapke liye hai.lagao or jeeto.I have bookmarked it in my google bookmarks.

    game is drawing and guisses based generally match-up,

    anyway currentlyit's arranged in best, and satta lord desawar is presently horribly eminent

    furthermore, to a great extent
    participating in game across the globe people ar insane with respect to this game.

    Yet, as of now the principal essential factor is that this game is satta king neglected to keep
    the law and

    decide guideline that to keep the conventions and rule. Presently right now people need to depend on it,is a online game. is a winner of Perday Game result of Satta. Satta Basicaly coming from Satta matka. in the present time satta many type
    such as cricket, Kabaddi, Hocky, stock market and other sector. Satta Kingis a game played for centuries, which has been playing its part in destroy people's homes. Satta is totally restricted in India. Satta has been prohibit in India since 1947. The Sattebaaj who play Satta have found a new way to avoid this Now. Satta King has Totally changed in today's Now. Today this gamble is playedonline. This online Satta is played like or Satta.is in a way a new form of Matka game. The starting is diffrent for every on the off chance that the game doesn't follow the conventions they need not play the games anyway people are still partaking in the game,they play the games on the QT people have answer on it to quit participating

    in this kind of games,
    consistently help work and worked with individuals that might want facilitated,do something for

    your country do perpetually reasonable thing and be everlastingly happy.satta king

    Much obliged to you for visiting Our Website sattaking,Most most likely similar to our visitor from Google search.Maybe you are

    visting here to become more acquainted with about gali satta number today.to know gali disawar ka satta number please visting

    your landing page of site and look down . You will see boxed sorts data which is show satta number

    of particular game. There you will likewise see number of today yesterday satta number of, for example, gali disawar, new

    mumbai, disawar gold and loads of game you have wagered on the game.If you play your own gali disawar satta game and

    need us to put your own board on your website.Please satta king

    get in touch with us on showed number which you will discover in footer part of website.Apna game dalwane k liye hamse

    contact kre on
    google pay,phonepe, paytm jaise aap chahe pehle installment karen. aapka board moment site pr update
    kr diya jayega jaisi hey aapka installment done hota haiWe greet you wholeheartedly and exceptionally pleased to have you our

    website.Please bookmark our site and stay tuned and refreshed to know.

    you might have perceived the cycle to play disawar satta gali game and caught wind of fix spill jodi disawar gali from

    your companions, family members. Actaully individuals favors disawar gali games as It is exceptionally well known in Indian subcontinent.

    BalasHapus