Search This Blog

Tuesday 24 July 2012

Find Websites IP address


Find a Website's IP Address


Like to know the IP address of a website? There are a few different commands you can use to find it.

Let's use the nslookup command to find the IP address of About.com. Just execute nslookup about.com and view the result. Make sure you don't confuse any private IP addresses that also show up in the nslookup results alongside About.com's public IP address.

Another way to find a site's IP address is to use the ping command. Execute ping about.com and then look at the IP address between the brackets in the results shown.

Using either Command Prompt trick, the result is 207.241.148.80.

LINUX Commands with Example

Want list of Linux Command with example


Click Here To Download

Saturday 7 July 2012

3x3 MATRIX MULTIPLICATION in C Language

3x3 MATRIX MULTIPLICATION

#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
main()
{
int a[3][3], b[3][3], c[3][3];
int i, j, k;
clrscr();
printf(" Enter elements of first matrix\n ");
for( i = 0; i < 3; i++ )
{
for( j = 0; j < 3; j++ )
{
printf(" \n Enter a[%d] [%d] element: ", i, j);
scanf(" %d ", &a[i] [j] );
}
}
printf(" Enter elements of second matrix\n ");
for( i = 0; i < 3; i++ )
{
for( j = 0; j < 3; j++ )
{
printf(" \n Enter b[%d] [%d] element: ", i, j );
scanf(" %d ", &b[i][j]);
}
}
printf(" \n\n First matrix is\n\n ");
for( i = 0; i < 3; i++ )
{
for( j = 0; j < 3; j++ )
printf(" %2d ", a[i][j]);
printf(" \n ");
}printf(" \n\nSecond matrix is\n ");
for( i = 0; i < 3; i++ )
{
for( j = 0; j < 3; j++ )
printf(" %2d ", b[i][j]);
printf(" \n ");
}
for( i = 0; i < 3; i++ )
{
for( j = 0; j < 3; j++ )
{
c[i][j] = 0;
for( k = 0; k < 3; k++ )
c[i][j] = c[i][j] + a[i][k] * b[k][j];
}
}
printf(" \n\n Multiplication of two matrices is\n ");
for( i = 0; i < 3; i++ )
{
for(j = 0; j < 3; j++ )
printf(" %2d ", c[i][j]);
printf(" \n ");
}
getch();
}