Simple Triangle.. But 4 diff approach….

A program to draw like this….

*
**
***
****
*****
******

first:

#include<stdio.h>

int main()
{
int i, j, base = 10;

clrscr();

for(i = 0; i < base / 2; i++)
{
for(j = 0; j < base / 2 – i; j++)
printf(” “);
printf(“*”);
for(j = 0; j < i * 2 – 1; j++)
printf(” “);
if(i > 0)
printf(“*”);
printf(“\n”);
}

for(i = 0; i < base + 1; i++)
printf(“*”);

return 0;
}

 

second: 

#include<iostream.h>
#include<conio.h>
main()
{

int i,j,k;
for (i=0;i<6;i++)
{
for(j=0;j<i;j++)

cout<<”*”<<endl;

}
getch();
}

third:

void main()
{
int i, j, k, n;
clrscr();
printf(“\n enter the value of n:”);
scanf(“%d”,&n);

for(i=1;i<=n;++i)
{
for(j=1;j<=n-i;++j)
{
printf(” “);
}
for(k=1;k<=i;++k)
{
printf(“* “);
}
printf(“\n”);
}
getch();
}

four: 

int comb(int n,int r)
{
int C;
C=fact(n)/(fact(r) * fact(n-r));
return C;
}

C++ Online Test…

Test ur Knowledge of C++   Online Test……

Free online test of C++  www.itworld2.com   try it………..

Saw IV

SAW IVHey, Dont get angry on me. I have no work to do. Thats why am keep on watching movies and blogging. Now am watching SAW IV .Good- Crime,Horror,Thriller movie.I have seen that three previous releases also.This also rocks in the same row.I think for Anniyan,the costume is copied from here for Vikram,one of my fav.

EULA Vs GPL

Some features about software covered by the EULA (End User License Agreement) for Microsoft Windows XP:

  • copying was prohibited
  • could be used only on one computer with a maximum of 2 processors
  • cannot be used as a webserver or fileserver
  • required registration after 30 days
  • could stop working if hardware changes were made
  • updates could change the EULA if the company so wished
  • could be transferred to another user only once
  • the new user must agree to the licence terms (no specification how this could be achieved)
  • imposes limitations on reverse engineering
  • gives Microsoft rights to collect information about the system and the its use
  • gives Microsoft the right to supply this information to other organisations
  • gives Microsoft the right to make changes to the computer without having to ask.
  • warranty for the first 90 days
  • fixes, updates or patches carry no warranty

Some features found in the GNU GPL (General public License)

  • freedom to copy, modify and redistribute the software
  • precludes one party from preventing another from having these same freedoms
  • provides coverage for rights of users to copy, modify and redistribute the software
  • no warranty as there is no fee
  • can be sold if the user so decides and services for such software can be charged for
  • any patents must be licensed for everyone’s use or not licensed at all
  • modified software must carry no licence fees
  • source code must be provided
  • if there is a change in license, the general terms of the existing one will be maintained.
Watch this video then decide which one will be better????????
           http://www.youtube.com/watch?v=xC5uEe5OzNQ

Polladhavan…

 Polladhavan

Hey its boring for me… So i watched the movie Polladhavan, starring Dhanush, sorry dunno heroine name exactly… Film full of fights for a bike(pulsar 200cc;-) )… Can see only once…

Google’s New Service

GoogleGreat new service from Google – GOOG-411.Make the call, tell them what city and business, get a list of business. The system can connect you to the business or send you a text message with the phone number and the URL to show you where the business is via Google Maps.

Google’s new 411 service is free, fast and easy to use. Give it a try now and see how simple it is to find and connect with local businesses for free.

Kaadhal…

Love...

Kalloori…….

Yesterday it was boring to me… I just downloaded this movie… Since i got Jaundice for the past fifteen days i couldnt able to go anywhere outside my home… thats why i keep on sitting infront of my system and doing some idiotic things…Poster

So, i saw the movie yesterday afternoon… that film really rocking… Directer made a good job in this film also like Kaaadhal… All the characters performed their roll more realistic… But at the end of the movie, three of them among ten friends will be killed including heroine… That was really touching… I like one song… (Unnarugil Varugayil…)

Watch this n have fun….

News today

I am just in shock over hearing about the assassination of Benazir Bhutto.  I was away from my computer for several hours, and saw it shortly after sitting down.  I ran to the TV and have been glued to it for over an hour.  Personally, I always liked her, and I had read her biography (or it might have been an autobiography, but I don’t recall) sometimes back . She could have been London itself.