Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

Saturday, 9 March 2013

C PROGRAM: TO REVERSE A NUMBER

CODING:
#include<stdio.h>
#include<conio.h>
void main()
{
 int num,temp,rev=0;
 clrscr();
 ab:
 printf("Enter a number: ");
 scanf("%d",&num);
 if(num<10)
 {
  printf("Please enter a number which is above 9\n\n");
  goto ab;
 }
 while(num>0)
 {
  temp=num%10;
  rev=temp+10*rev;
  num=num/10;
 }
 printf("\n\nReversed number: %d",rev);
 getch();
}


CODING

OUTPUT


For any query or suggestion please comment below...

JAVA PROGRAM: TO REVERSE A NUMBER


HEADER FILE
        import javax.swing.JOptionPane;



CODING OF REVERSE BUTTON(jButton1)
        int num,temp,rev = 0;
        num=Integer.parseInt(jTextField1.getText());
        if(num<10)
        {
         JOptionPane.showMessageDialog(null,"Enter a number greater than 9");
         jTextField1.setText("");
        }
        else
        {
         while(num>0)
         {
          temp=num%10;
          rev=temp+10*rev;
          num=num/10;
         }
         jTextField2.setText(" "+rev);
        }

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

CODING OF EXIT BUTTON(jButton3)

        System.exit(0);

CODING

RUNNING

RUNNING

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


For any query or suggestion please comment below...

Friday, 8 March 2013

EXAMPLE OF ARRAY OF STRUCTURE IN C PROGRAMMING

CODING:
#include<conio.h>
#include<stdio.h>
struct stud_record
{
 char name[25];
 char cls[5];
 int roll_no;
};
main()
{
 int i;
 struct stud_record student[2];
 clrscr();
 for(i=0;i<2;i++)
 {
  printf("Enter name: ");
  scanf("%s",student[i].name);
  printf("Enter class: ");
  scanf("%s",student[i].cls);
  printf("Enter roll no.: ");
  scanf("%d",&student[i].roll_no);
  printf("\n");
 }
 printf("\n\n");
 for(i=0;i<2;i++)
 {
  printf("RECORD %d\n",i+1);
  printf("Name: %s\n",student[i].name);
  printf("Class: %s\n",student[i].cls);
  printf("Roll no. %d\n\n",student[i].roll_no);
 }
 getch();
}

CODING


OUTPUT


For any query or suggestion please comment below...

EXAMPLE OF STRUCTURE IN C PROGRAMMING

CODING:
#include<conio.h>
#include<stdio.h>
struct stud_record
{
 char name[25];
 char cls[5];
 int roll_no;
};
main()
{
 struct stud_record student1,student2;
 clrscr();
 printf("Enter name: ");
 scanf("%s",student1.name);
 printf("Enter class: ");
 scanf("%s",student1.cls);
 printf("Enter roll no.: ");
 scanf("%d",&student1.roll_no);
 printf("\n");
 printf("Enter name: ");
 scanf("%s",student2.name);
 printf("Enter class: ");
 scanf("%s",student2.cls);
 printf("Enter roll no.: ");
 scanf("%d",&student2.roll_no);
 printf("\n\n");
 printf("RECORD 1\nName: %s\nClass: %s\n",student1.name,student1.cls);
 printf("Roll no. %d\n\n",student1.roll_no);
 printf("RECORD 2\nName: %s\nClass: %s\n",student2.name,student2.cls);
 printf("Roll no. %d\n\n",student2.roll_no);
 getch();
}


CODING

OUTPUT


For any query or suggestion please comment below...

Wednesday, 6 March 2013

HOW TO ENABLE / INSTALL MICROSOFT .NET FRAMEWORK 3.5 IN WINDOWS 8 OFFLINE

Windows 8 comes with Microsoft .NET Framework 4.0. But many application needs Microsoft .NET Framework 3.5. You didn't need to download it, as it is present in Windows 8 disc. You just need to enable it. You can do this by following steps given below:

1.Insert Windows 8 disc Or mount Windows 8 disc image. Open Start and type cmd.


2.Right click on Command Prompt. Click on Run as administrator.


4.Copy and paste this highlighted text in Command Prompt
dism.exe /online /enable-feature /featurename:NetFX3 /Source:G:\sources\sxs /LimitAccess


5.Replace letter G with your CD-ROM Drive letter in which you have inserted Windows 8 disc OR with virtual drive letter if you have mounted Windows 8 disc image. Then click enter and wait for few minutes until its progress is not completed.



NOTE: Click on image to view it correctly.


For any query or suggestion please comment below...

Tuesday, 5 March 2013

TORCH WEB BROWSER FEATURES

Torch is a free and unique software that offers you powerful browsing together with built-in media downloading and sharing features.

Torch Browser is based on the Chromium technology platform, giving it fast browsing capabilities. With Torch, you can share sites you like, download torrents, accelerate downloads and grab online media - all directly from the browser. Everything you need is a just click away with Torch, so you don't have to use or download additional programs and tools.

You can also use apps from Google Chrome web store.

You can download it from its official site http://www.torchbrowser.com/





For any query or suggestion please comment below...