Wednesday, October 22, 2014

if condition in .net

Posted by Unknown  |  No comments


 if you want more related search please click here  
 please help to other  
 http://scriptquery.blogspot.in/  

 if condition in .net  
 using System;  
 namespace ConsoleApplication1  
 {  
   class Program  
   {  
     static void Main(string[] args)  
     {  
       int number;  
       Console.WriteLine("Please enter a number between 0 and 10:");  
       number = int.Parse(Console.ReadLine());  
       if(number > 10)  
         Console.WriteLine("Hey! The number should be 10 or less!");  
       else  
         if(number < 0)  
           Console.WriteLine("Hey! The number should be 0 or more!");  
         else  
           Console.WriteLine("Good job!");  
       Console.ReadLine();  
     }  
   }  
 }  
 int number=0;  
 if((Number > 10) || (Number < 0))  
   Console.WriteLine("Hey! The number should be 0 or more and 10 or less!");  
 else  
   Console.WriteLine("i am good in all");  

 if you want more related search please click here  
 please help to other  
 http://scriptquery.blogspot.in/  


3:17 AM Share:

0 comments:

Get updates in your email box
Complete the form below, and we'll send you the best coupons.

Deliver via FeedBurner
Proudly Powered by Blogger.
back to top