Earn while u Learn

Tips tweaks hacks on computer with C C++ VB tutorials and ways to earn money online

ad

To check a year is leap year or not

This code will create a program to check if a year is leap year or not.
Code:
__________________________________________________________

#include(stdio.h)
#include(conio.h)
main()
{
int year,leap;
printf("\tEnter a year Ex. 1990\n");
scanf("%d",&year);
if(a%4==0)
{
printf("%d is a leap year\n",year);
}
else
{
printf("%d is not a leap year",year);
}
getch();
}
 __________________________________________________________

To find a greater number between two numbers in C

This code will help you to find a greater number between two numbers in C
Code:
__________________________________________________________

#include(stdio.h)
#include(conio.h)
main()
{
int a,b;
printf("Enter a number\n");
scanf("%d",&a);
printf("Enter a number\n");
scanf("%d",&b);
if(a>b)
{
printf("%d is greater than %d\n",a,b);
}
else if(a,b)
{
printf("%d is less than %d\n",a,b);
}
else
{
printf("%d is equal to %d\n",a,b);
}
getch();
}
__________________________________________________________

To find out Even or Odd no. in C

This program is a very simple example of " if statement in c" Hope you try to understand the code.
Code:
__________________________________________________________
#include(stdio.h)
#include(conio.h)
main()
{
int number;
printf("Enter the number to be checked");
scanf("%d",&a);
if(a%2==0)
{
printf("\t\nThe number you provided is a Even number\n\t");
}
else
{
printf("The number you provided is a Odd number");
}
getch();
}
__________________________________________________________

perimeter of rectangle in C.

This program is for calculating perimeter of rectangle in C.

CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)
main()
{
int l,b,perimeter;
printf("Enter the length of rectangle");
scanf("%d",&l);
printf("Enter the breadth of rectangle");
scanf("%d",&b);
perimeter=l*b;
printf("\n\tperimeter of rectangle = %d",area);
getch();
}
__________________________________________________________

area of rectangle in C

This program is for calculating area of rectangle in C.

CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)
main()
{
int l,b,area;
printf("Enter the length of rectangle");
scanf("%d",&l);
printf("Enter the breadth of rectangle");
scanf("%d",&b);
area=l*b;
printf("\n\tArea of rectangle = %d",area);
getch();
}

total and average of 5 subject marks in c

This program is for calculating total and average of 5 subject marks in c.

CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)

main()
{
float avg;
int a,b,c,d,e, total;
printf("enter the marks in five different subjects");
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
total=a+b+c+d+e;
avg=total/5;
printf("Total = %d\n Average=%d\n",total,avg);
getch();
}

addition, substraction, multiplication, division in one program of two numbers in C

This program is for addition, substraction, multiplication, division in one program of two numbers in C.
CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)

main()
{
int a,b,add,sub,mul,div;
printf("Enter two numbers");
scanf("%d%d",&a,&b);
add=a+b;
sub=a-b;
mul=a*b;
div=a/b;
printf("Addition =%d\n Substraction=%d\n Multiplication=%d\n Division=%d\n",add,sub,mul,div);
getch();
}
 __________________________________________________________

division of two numbers in C

This program is for dividing two numbers inputted be the user.

CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)

main()
{
int x,y,div=0;
printf("Enter two number");
scanf("%d%d",&x,&y);
div=x-y;
printf("substraction = %d ",div);
getch();
}

multiplication of 2 numbers in C

This program is for multiplying  two numbers inputted be the user.

CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)

main()
{
int x,y,mul=0;
printf("Enter two number");
scanf("%d%d",&x,&y);
mul=x-y;
printf("substraction = %d ",mul);
getch();
}

substraction of two numbers

This program is for subtracting two numbers inputted be the user.

CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)

main()
{
int x,y,sub=0;
printf("Enter two number");
scanf("%d%d",&x,&y);
sub=x-y;
printf("substraction = %d ",sub);
getch();
}

__________________________________________________________

sum of two nubers

This program is the first program to calculate the sum of two numbers in C.

CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)

main()
{
int x,y,sum=0;
printf("Enter two number");
scanf("%d%d",&x,&y);
sum=x+y;
printf("sum = %d ",sum);
getch();
}

__________________________________________________________

how to access hidden windows 7 themes

hi friends yo may have come across many articles that windows 7 has many hidden themes but where are they located. These themes too are high definition themes. And will surely make feel your desktop come live. To search for these beautiful high definition themes go to : 
                C:\Windows\Globalization\MCT
 have a beautiful desktop.
(Note this folder may be hidden in your windows so better is to paste this address in your address bar )

tune up utilities 2010


Tuneup Utilities 2010 a very good tool to optimize, tweak and enhance the performance of your computer in a very simple and user friendly manner. It consists all tools that are helpful in increasing the speed of computer at the level its speed should be. Some of the features of TUNEUP UTILITIES are below:   
 



  1. Drive Defragmenter : This tool is a very much essential  tool for a PC user as it rearranges the fragmented files in an order thus making the computer faster.








  2.  Registry Cleaner : This toll helps in scanning of missed or corrupted registry values that are not  valid or are missed. This helps to make windows faster as when windows loads it also loads the registry values to work properly & find programs. Missed or corrupted registry keys makes windows loading slow. So to make it work properly a registry cleaner or should be manually cleaned .



 3. Defragment Registry : This tool in TUNEUP UTILITIES helps to analyze and 
defragment the registry. As it is required to defragment the hard disk it is also advised to defragment the registry.




 4. Gain Disk Space : A very good tool to destroy all clusters, backups, restore points, saved passwords, cache etc from the computer. This helps n gaining the disk space. As their are many great disk cleaners but this utility makes it easy at one click.




5. Configure System Start or Startup manager : This is a very good tool because its makes windows load faster. This happens when many startup programs are removed from the registry to not to load at startup thus consuming less amount of RAM and Hard disk. Some softwares when installed set themselves to start automatically in the background. Thus decreasing the speed. They    can be accessed manually so why to keep them in the startup.



6. Display or uninstall programs  or Uninstall manager : This tool also helps users to keep their computer clean with unwanted softwares. This tool searches installed programs and displays so that the user can remove it from the computer.


         

7. Fix common problems : A very good and necessary tool that helps in repairing the broken shortcuts or deleted or vanished icons.






8. Restore deleted files or Tuneup undelete : Is a very good tool that helps in restoring the accidently or deleted files, musics, videos, images etc.



9. Check hard disk for errors or disk doctor : A very good tool to search and repair corrupted sectors of hard disk. It checks the file system and prevents data loss.
(Note these are the main components of TUNEUP UTILITIES 2010 but it has about 20 tweaking tools including these. In my point it is a very good tool to safely increase the speed of a computer.)



                                              

top 4 ways to increase the speed of your computer.

do you know that all of us feel that when our computer is formatted & reinstalled the computer is very much fast but slowly after some days people say the computer is going slow. So lets take a inside view of the computer to understand what does really happen to the computer after some day.
If you want to make it faster as it was before then try my methods :


  1. check your disks for bad sectors containing errors & corruptions. To do this go to My Computer => right click on the drive you want to check => properties => tools => click on Check Now => tick on both options & click start. The disk will be checked for bad sectors & corruptions.
  2.  to defragment your disks. Many file in windows are fragmented. This happens due to deletion of data from the sector windows has kept it. This basically happens in the Windows directory ( c: ) because Windows writes & deletes data for it use thus leaving lots of fragmented files in computer. So to defragment your disk go to My Computer => right click on the drive you want to check => properties => tools => click Defragment Now => select the drive you want to defragment & click on defragment =>then the process of defragment willl start and thus your computer will be defragmented.
  3. disable some of the services like Indexing Service. The indexing service helps  to search file faster by making the content indexed. But it reduces the speed of the computer. To disable this service visit    My Computer => right click on the drive you want to check => properties => uncheck the " allow file on this drive to be indexed in addition to file properties => OK . this will disable the indexing service.    (Note: do not turn of computer during this process.) 
  4. kill some of the process that are not used by you using task manager. 
  5. download and install TUNEUP Utilities. It is a very good tool to optimize the speed of the computer.

how to hack windows xp password without any software

hi friends today I thought about writing for those who have forgotten their Windows XP password and are not able to access their computer. This means you can not listen to your favorite songs, play games, or view any documents. So what people generally do is that they format their pc & re- install Windows XP. This is a good process as it removes all passwords & viruses are also removed to. But actually if you calculate it takes about 50-55 min to install Windows Xp and about 30min at list to install all your basic driver & softwares. But it is a very slow process so the thing to do is to try this method to open the windows xp with administrator rights.
  1. Start your computer.
  2. After all the process & services have been loaded, in the "USER LOGIN" press CTRL+ALT+DEL.
  3. There a window pops out asking the username & password.
  4. In the user name type "Administrator" & in the password type nothing.
  5. press enter or ok.
  6. Windows xp will start the hidden administrator account with administrative rights.
(NOTE:- Don't use it for hacking into someones computer illegally. It is only for you if you are in trouble.)

how to uninstall Internet Explorer form windows 7

Generally some people don't like to use internet explorer for surfing web. This may be due to the appearance or something else. But internet explorer is a very good web-browser which is much faster & safer.
But the point is that if users do not use internet explorer then why not to remove it from the computer.
It saves space.

So let us uninstall internet explorer. To do this in Windows 7:-


  1. Go to start.
  2. In the search box type " Turn Windows Features ON or OFF".
  3. Then click on the " Turn Windows Features ON or OFF"." botton.
  4. A dialog box will open.
  5. Search for Internet Explorer 8.
  6. Remove the check mark & press ok.
  7. Then windows will start uninstalling Internet Explorer 8.
(Note: This feature can also be used to remove & install many other windows features.)

how to run windows xp programs & softwares in windows 7

hi friends i thought of writing in the context of " how to run Windows XP programs & softwares in Windows 7" because I found many of my friends asking about the troubleshooting problems while installing softwares & drivers in Windows 7 . We know that windows7 is the latest OS by Microsoft. So the softwares & drivers created before the publication of Windows 7 might not have known codes or formats for windows 7. So during installation they show errors like " OS not found" or "Un-supported OS version? ". To fix these kinds of problems Windows 7 has a very good function called "Troubleshoot compatibility" in the right click menu.

Now let me show ho to do this to run all the softwares and drivers in Windows 7 by using "Troubleshoot compatibility":-



  1. Select  the setup file ( .exe file) and right click on it.
  2. Then  select on the "Try Recommended Settings".                                                  
  3. Then click on "Start Program"  
  4. Then the program will start & you can install it in Windows 7.                            
(Note:- This may cause some instability  in some programs. so, it is better advised to have the latest driver & softwares.  )           .                                                                                          

Sign in / Join

Labels