Friday, August 27, 2010

Piramid

#include<stdio.h>
#include<conio.h>

void main()
{
   int i,j,k,n;
   printf("enter the no. '<20'");
   scanf("%d",&n);

   for(i=1;i<=n;i++)
   {
      for(j=1;j<=n-i;j++)
      {
          printf(" ");
      }
      for(k=1;k<=2*i-1;k++)
      {
         printf("*");
      }
      printf("\n");
   }

   getch();
}
Output-->

Thursday, August 26, 2010

Greatest of Three Numbers

#include<stdio.h>

void main()
{

        int a,b,c;
        printf("Enter the Three Number:\n");

        printf("First Number:");
        scanf("%d",&a);

        printf("Second Number:");
        scanf("%d",&b);

        printf("Third Number:");
        scanf("%d",&c);

        if((a>b)&&(a>c))
        printf("\n%d is greatest than other two's.",a);

        else if((b>a)&&(b>c))
        printf("\n%d is greatest than other two's.",b);


        else
        printf("\n%d is greatest than other two's.",c);

}
OutPut---->

Monday, August 23, 2010

Introduction: C#

Welcome to the C# Station Tutorial. This is a set of lessons suited for beginning to intermediate programmers or anyone who would like to gain familiarity with the C# programming language. These lessons will help you get a quick head-start with C# programming.


To get started, you will need a compiler and an editor. There are several options for obtaining a compiler to write C# programs. A free option is to download the .NET Frameworks SDK and use Notepad. Of course there are many editor and IDE options available, so see the Tools section to select the option that's right for you. Most of the examples in these tutorials run as console programs. Microsoft Visual Studio .NET is also available in multiple versions as well as a free download for Visual Studio Express tools, including Visual C# Express.


This tutorial is a work in progress. It's quality is a product of volunteer reviews and valuable feedback received from many readers. Please visit periodically for the latest updates and new lessons.


Once you've completed this tutorial, you may be interested in additional resources to continue learning C#. There are additional Articles on this site and a Links section will guide you to many high-quality web sites that specialize in certain .NET technologies.