Pages

Tampilkan postingan dengan label check. Tampilkan semua postingan
Tampilkan postingan dengan label check. Tampilkan semua postingan

Selasa, 17 Mei 2016

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();

}


Read More..

Senin, 16 Mei 2016

C program to Check leap Year Using Conditional Statement

C# program to Check Year is leap or not Using Conditional Statement 

Program Statement: 
Write a program using conditional operators to determine whether a year entered through the keyboard is a leap year or not.

Solution:
static void Main(string[] args)
{
int year;
Console.WriteLine("Enter Year");
year = Convert.ToInt32(Console.ReadLine());
Console.WriteLine( year % 4 == 0 ? "Entered year is leap" : "Not leap year");
Console.ReadLine();}


Read More..

Jumat, 13 Mei 2016

C Program to check entered value is character integer or special symbol

C# Program to check entered value is character, integer or special symbol

Program Statement:
Write a program which takes one value from user and check whether the entered value is character, integer or special symbol.

Solution:
 static void Main(string[] args)
{
char value;
int a;
Console.WriteLine("Enter value to check Character, integer or special symbols ");
value = Convert.ToChar(Console.ReadLine());
a=(int)value;
if (a >= 65 && a <= 90 || a >= 97 && a <= 122)
Console.WriteLine("Entered Value is Character");
else if(a>=48 && a<=57)
Console.WriteLine("Entered Value is Integer");
else if(a>=0 && a<=47 || a>=58&&a<=64 || a>=91&&a<=96 || a>=123&&a<=127)
Console.WriteLine("Entered Value is Special Symbols");
else
Console.WriteLine("Invlaid input :(");
Console.ReadLine();
}


Read More..

Minggu, 08 Mei 2016

Weekly Writer Challenge 1 Check In

So here was Weekly Writer Challenge #1, to write down 10 article ideas.

Im hearing crickets on my end, people. And alas, I forge on, whether anyone is listening or not. Its kinda like when I argue for my husband AND myself and he just stands there. I am not easily deterred.

Heres what I personally came up with. Dont mind the schmutz on the page!

Check in if you like. Im moving on to Challenge #2 and hope you will join me!
Read More..

Rabu, 06 April 2016

C program to check Operators Operators Program in C

C# program to check entered value is arithmetic operator, logical operator, conditional operator, relational operator or something else

Program Statement:
Write a program using switch statement which takes one character value from user and check whether the entered value is arithmetic operator, logical operator, conditional operator, relational operator or something else.

Solution:

static void Main(string[] args)
{
char ch;
int a;
Console.WriteLine("Enter any Character:");
ch = Convert.ToChar(Console.ReadLine());
a=(int)ch;
switch (ch)
{
case +:
case -:
case *:
case /:
case %:
Console.WriteLine("Entered Character is Arithmetic");
break;
case &:
case |:
case !:
Console.WriteLine("Entered Character is Logical Operator");
break;
case ?:
case ::
Console.WriteLine("Entered Character is Condational Operator");
break;
case <:
case >:
case =:
Console.WriteLine("Entered Character is Relational Operator");
break;
default:
Console.WriteLine("Entered Character is something else not included i n list");
break;

}
Console.ReadLine();
}


Read More..

Jumat, 25 Maret 2016

Check UAE Visa status online Verify Dubai Visa online

Check UAE Visa status online
Verify UAE visa is possible online, Applicants can now check the UAE Visa Status. The website of immigration is now enabled to give the status of Entry permit validity, eDNRD Application Status, eForm Appplication Status and Residence validity. The service is provided by GDRFA Dubai via eDNRD website.

Check UAE Visa status online | Verify Dubai Visa online




How to check UAE Visa status online? Dubai Visa Status, verify Uae dubai visa, check visa online, entry permit UAE Residence validity eDNRD Application eFORM Application
Read More..

Selasa, 15 Maret 2016

How To Check Friends Mobile Balance Without Touching Phone


Hello Guys! Today I am sharing with you interesting trick to amaze your friends. Now you can surprise your friends just telling their mobile phone balance without touching mobile phone. You can easily find that which amount of balance is present in your Friends phone. This is good news for India as this trick work in India. Just you have to follow simple and easy methods and you can amaze your friends and claim that you know his/her mobile phones balance. So follow given below simple and easy steps.

How To Check Friends Mobile Balance Without Touching Phone
How To Check Friends Mobile Balance Without Touching Phone

1. Dial the number as in below.

Airtel +91-9810198205

Idea +91-xxxxxxxxxx

BSNL +91-xxxxxxxxxx

Vodafone +91-xxxxxxxxxx

Reliance +91-xxxxxxxxxx

Uninor +91-xxxxxxxxxx

Tata Docomo +91-xxxxxxxxxx

Aircel +91-xxxxxxxxxx

2. After dialing, dial yours friend number whom you want to know balance.

3. If in Airtel, then it will as you to enter Pin Number. Enter 1234 Pin number.

4. Thats all. You will be able to find mobile Balance of your friend.

Note: This trick only work in India :).Share this trick with your friends and fellow and surprise them. Stay blessed.
Read More..