Pages

Adsense responsive

Friday, 1 March 2013

JAVA PROGRAM: TO MULTIPLY TWO NUMBERS WITHOUT USING ARITHMETIC OPERATOR *


CODING OF MULTIPLY BUTTON(jButton1)
        int num1,num2,i,mul=0;
        num1=Integer.parseInt(jTextField1.getText());
        num2=Integer.parseInt(jTextField2.getText());
        for(i=1;i<=num2;i++)
         mul+=num1;
        jTextField3.setText(" "+mul);

CODING OF CLEAR BUTTON(jButton2)
        jTextField1.setText(" ");
        jTextField2.setText(" ");
        jTextField3.setText(" ");


CODING OF EXIT BUTTON(jButton3)
        System.exit(0);


CODING

RUNNING

We have used NetBeans IDE 7.2.1. To download it visit www.netbeans.org

For any query or suggestion please comment below...

C PROGRAM: TO MULTIPLY TWO NUMBERS WITHOUT USING ARITHMETIC OPERATOR *

CODING:
#include<conio.h>
#include<stdio.h>
void main()
{
 int num1,num2,i,prod=0;
 clrscr();
 printf("Enter 1st number: ");
 scanf("%d",&num1);
 printf("Enter 2nd number: ");
 scanf("%d",&num2);
 for(i=1;i<=num2;i++)
 {
  prod+=num1;
 }
 printf("\n\n\nProduct of %d and %d is %d",num1,num2,prod);
 getch();
}


CODING

OUTPUT


For any query or suggestion please comment below...

Thursday, 28 February 2013

GOOGLE SEARCH ENGINE 15 TIPS AND TRICKS




For any query or suggestion please comment below...

HD FLOWER WALLPAPER





NOTE: Click on image to view it correctly.

HD FLOWER WALLPAPER




NOTE: Click on image to view it correctly.

Wednesday, 27 February 2013

C PROGRAM: TO CALCULATE SUM OF SERIES 1/1+1/2+1/3+-------+1/10

CODING:
#include<stdio.h>
#include<conio.h>
void main()
{
 int i;
 float sum=0;
 clrscr();
 for(i=1;i<=10;i++)
 {
  sum=sum+1.0/i;
 }
 printf("Sum of series= %f",sum);
 getch();
}


CODING

OUTPUT

For any query or suggestion please comment below...

Monday, 25 February 2013

HD WALLPAPER



NOTE: Click on image to view it correctly.


For any query or suggestion please comment below...

JAVA PROGRAM: TO PRINT TEXT IN TEXTAREA


CODING OF ACTION BUTTON(jButton1)
        String name,address,clas;
        int rollno;
        name=jTextField1.getText();
        clas=jTextField2.getText();
        rollno=Integer.parseInt(jTextField3.getText());
        address=jTextField4.getText();
        jTextArea1.append("Information entered by you:\n\nName:   "+name+"\nClass: "+clas+"\nRoll no. "+rollno+"\nAddress: "+address);

CODING OF CLEAR BUTTON(jButton2)
        jTextField1.setText("");
        jTextField2.setText("");
        jTextField3.setText("");
        jTextField4.setText("");
        jTextArea1.setText("");

CODING OF EXIT BUTTON(jButton3)
        System.exit(0);


CODING
RUNNING

We have used NetBeans IDE 7.2.1. To download it visit www.netbeans.org

For any query or suggestion please comment below...