Earn by twitter on twivert

Sign up for PayPal and start accepting credit card payments instantly.

Saturday, May 15, 2010

Upper Case To Lower Case




'controls       Property        Setting

'Label1          Name            lbl
'                Caption          Enter Text

'Textbox1        Name            Text1
'                Caption           -

'Label2          Name            lblUpper
'                Caption          -

'Label3          Name            lblLower
'                Caption          -

'Label4          Name            lblReverse
'                Caption          -

'command1        Name            cmdUpper
'                Caption           Upper

'command2        Name            cmdLower
'                Caption           Lower

'command3        Name            cmdReverse
'                Caption           Reverse


'-----------------------------------------------------
'                        CODE

Private Sub cmdUpper_click()

text=Ucase(Text1.text)
lblUpper.Caption=text
End Sub

Private Sub cmdLower_click()

text=LUcase(Text1.text)
lblLower.Caption=text
End Sub

Private Sub cmdReverse_click()

text=StrReverse(Text1.text)
lblReverse.Caption=text
End Sub

WAP to multiplication of 2 matrix


/*WAP to multiplication of 2 matrix*/

#include<stdio.h>
#include<conio.h>
void main()
{
int a[2][2],b[2][2],c[2][2],i,j,k;
clrscr();
printf("enter 1 matrix");
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
scanf("%d",&a[i][j]);
}
}
printf("enter 2 matrix");
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
scanf("%d",&b[i][j]);
}
}
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
c[i][j]=0;
for(k=0;k<2;k++)
c[i][j]=c[i][j]+a[i][k]*b[k][j];
}
}
printf("multiplication of 2 matrix");
for(i=0;i<2;i++)
{
printf("\n");
for(j=0;j<2;j++)
{
printf("%d\t",c[i][j]);
}
}
getch();
}

ADS

How to earn online

How to earn online:
Step - 1 :
signup for PayPal, to recieve your online earning
click here:
https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL
step - 2 : Singup these 4 sites & earn & enjoy! Read site to know how to earn.
1. trekpay
Earn up to $0.02 (2 cents) per click.
http://www.trekpay.com/?ref=34690
2. neobux
Earn up to $0.02 (2 cents) per click.
Click here:
http://www.neobux.com/?r=Moneyearner786

AddMe

Bookmark and Share