Wednesday, 19 March 2014

AMD graphic code 43 error?


Nowdays the laptop doesnot take the drivers normally when we boot/format the computer with windows 7 or windows 8.AMD graphice code 43 is error is due to this problem.The driver is not installed properly or driver is out of date.You can download the driver from the different site but I suggest to download from the geinue sites like if you laptop is of Hp gp to hp.com and download the drivers.
After downloading the drivers
1st install intel driver and then install amd driver. Now restart your computer.

Friday, 7 March 2014

write a program to add two matrix using array??

#include<stdio.h>
#include<conio.h>
main()
{
int x[3][3],y[3][3],z[3][3],i,j,k;

printf("enter the first matrix");
for(i=0;i<=2;i++)
{
for(j=0;j<=2;j++)
scanf("%d",&x[i][j]);
}
printf("enter the second matrix");
for(i=0;i<=2;i++)
{
for(j=0;j<=2;j++)
scanf("%d",&y[i][j]);
}
for(i=0;i<=2;i++)
{
for(j=0;j<=2;j++)
z[i][j]=x[i][j]+y[i][j];
}
printf("the matrix addition is");
for(i=0;i<=2;i++)
{
for(j=0;j<=2;j++)
printf("%d\t",z[i][j]);
printf("\n");
}
getch();
}


Thursday, 6 February 2014

how to run backtrack on android????


1.download complex linux, busybox, vnc android ,terminal emulator from play store
2.download bt5 image .
3.now open busybox and install it.
4.open complete linux -> click on launch ->setting ->add the backtrack image ->launch it.
5. now choose vnc server ->yes and set the resoution and note the LOCALHOST NO.
6.Open vnc and enter
name: backtrack
pass:backtrac
address:127.0.0.1
port:590 and localhost num ie 0,1,2...
now press connect.




Thursday, 23 January 2014

/* WAP to find Factorial of a number using recursive function */

/* Factorial of a number using recursive function */

#include<stdio.h>
#include<conio.h>
int fact(int);
void main()
{
    int num;

    printf("Enter A Number:");
    scanf("%d",&num);

    printf("\n%d!=%d",num,fact(num));

    getch();
}

fact(int num)
{
    if(num<1)
    {
        return 1;
    }
    else
    {
        return (num*fact(num-1));
    }
}

/*WAP to find Factorial of a number using for loop */

/* Factorial of a number using for loop */

#include<stdio.h>
#include<conio.h>
void main()
{
    int num,i,fact=1;

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

    for(i=1;i<=num;i++)
    {
        fact=fact*i;
    }

    printf("%d!=%d",num,fact);
}

/* WAP to Matrix subtraction */

/* Matrix subtraction */

#include<stdio.h>
#include<conio.h>
void main()
{
    int mat1[3][3],mat2[3][3],sub[3][3],i,j;

    printf("Enter the elements of  first matrix:\n");
    for(i=0;i<=2;i++)
    {
        for(j=0;j<=2;j++)
        {
            scanf("%d",&mat1[i][j]);
        }
    }

    printf("Enter the elements of  second matrix:\n");
    for(i=0;i<=2;i++)
    {
        for(j=0;j<=2;j++)
        {
            scanf("%d",&mat2[i][j]);
        }
    }

    for(i=0;i<=2;i++)
    {
        for(j=0;j<=2;j++)
        {
            sub[i][j]=mat1[i][j]-mat2[i][j];
        }
    }

    printf("The Sum Of Matrices Is:\n");
    for(i=0;i<=2;i++)
    {
        for(j=0;j<=2;j++)
        {
            printf("\t%d",sub[i][j]);
        }
        printf("\n");
    }
}

* WAP to concate strings */

/* WAP to concate strings */

#include<stdio.h>
#include<conio.h>
void main()
{
    char str1[100],str2[100],str[100];
    int i=0,j=0;

    printf("Enter First String:");
    gets(str1);

    printf("Entre Second String:");
    gets(str2);

    while(str1[i]!='\0')
    {
        str[j]=str1[i];
        i++;j++;
    }

    i=0;
    while(str[i]!='\0')
    {
        str[j]=str2[i];
        i++;j++;
    }

    printf("The Concate Of Entered Strings Is:");
    puts(str);

    getch();

}