Wednesday, September 5, 2012

Convert Meters into Kilometers

Write a C program to convert meters into kilometers. 


#include<stdio.h>
#include<conio.h>
void main()
{
int km,m;
clrscr();
printf("Enter the miter ==>");
scanf("%d",&m);


km=m/1000;

printf("km=%d",km);
getch();

}

--------------------------------------------------------------------------------
Write a C program to convert kilometers to meters

#include<stdio.h>
#include<conio.h>
void main()
{
        int meters,kilometrs;
        clrscr();
printf("\n\nEnter the kilometers =>");
scanf("%d",&kilometrs);
        meters=kilometrs*1000;
        printf("\nmeters=%d",meters);
getch();

}

C language program examples


Write a C program to input amount, rate of interest and number of years from user, and calculate simple interest.

 (SI = P*R*N/100) 



#include<stdio.h>
#include<conio.h>
void main()
{
         float p,r,n,si;
         clrscr();
printf("\nEnter the principle=>");
scanf("%f",&p);
 

         printf("\nEnter the rate=>");
scanf("%f",&r);
 

         printf("\nEnter the number of years=>");
scanf("%f",&n);
 

         si=p*r*n/100;
printf("simple interest is =%.3f",si);
         getch();
}


C language program examples

Write C program to declare two variable named a and b with some float value and print the addition subtraction, multiplication and division of this two numbers. 

#include<stdio.h>
#include<conio.h>
void main()
{
      float a,b,c;
      clrscr();


       a=20;
       b=10;


       c=a+b;
       printf("\n Addition of a and b = %f",c);

       c=a-b;
       printf("\n\n Subtration of a and b = %f",c);

       c=a*b;
       printf("\n\n Multiplication of a and b = %f",c);

       c=a/b;
       printf("\n\n Division of a and b = %f",c);
       getch();
 }

Tuesday, September 4, 2012

Learn C Language

learn C languge
My title

                                                                                                                           

What is language?

      
   In which same manner computer languages are the collection of predefine keywords which can be used to perform certain task and to communicate between two entities like between two machine or human or computers or other peripherals.

What is language translator?
                As we know that computer understands only the instruction written in the machine language. Therefore a program written in any other language should be translates to machine language.  For this purpose special program are available they are called translators or language processor. This special program accepts the user programs and checks each statement and produces a corresponding set of machine language instructions. There are two types of translators

 Compiler:
A compiler checks the entire program written by user and if it is free from error and mistakes then produces a complete program in machine language known as object program. But if it founds some error in program then it does not execute the single statement of the program. So compiler translator whole program in machine language before it starts execution.


Interpreter:
Interpreters perform the similar job like compiles but in different way. It translates (interpreter) one statement at a time and is error – free then executes that statement. this continues till the last statement in the program has been translates and executed. Thus interpreter translates and executes the statement before it goes to next statement. When it founds some error in translate.

                                                                                   NEXT>>   


C language Programs

Collection of  C programs for beginners. By C language examples you can learn easily  C language.


1. Write a  C program to print "hello world" string.

#include<stdio.h>
#include<conio.h>
void main()
{
      clrscr();
      printf("My first Hello World Program");
      getch();
}

2. Write a  C program to print your information

#include<stdio.h>
#include<conio.h>
void main()
{
char name,city;
        int age;
        clrscr();
printf("Enter your Name:");
        scanf("%s",&name);
printf("Enter your age:");
        scanf("%d",&age);
        printf("Enter your City:");
        scanf("%s",&city);
        printf("\nName is %s\ncity is %s \nAge is %d",name,city,age);
        getch();
}


3. Write a  C program to calculate sum of two static numbers.

#include<stdio.h>
#include<conio.h>
void main()
{
       int a=10,b=20;
       clrscr();
       a=a+b;
       printf("\na=%d",a);
       getch();
}

4. Write a  C program to calculate sum of two userdefine numbers. 

#include<stdio.h>
#include<conio.h>
void main()
{
       int a,b;
       clrscr();
       printf("Enter first number");
       scanf("%d",&a);
       printf("Enter second number");
       scanf("%d",&b);
     
       a=a+b;
       printf("\na=%d",a);
       getch();
}

Sunday, September 2, 2012

Convert PDF to DOC word file online free

convert PDF file to text file or word file online free....
just upload your .pdf file and add E-mail id to receive doc file attachment ...To convert click here

++++++++++++++++++++++++++++++++++++++++++++

How to get money from blog??

 You have to write unique contents from others and try add new topic in your blogs. 

To start google adsense program to your site,  your site's age should be more than 6 months . Create backlinks with other popular sites.Try to update blogs Regular. add affiliate program, submit your site to google search engine.

you can join advertise program infolinksdotcom, they post text advertise on your blog and they will pay you if their criteria satisfy with your blog.

You can add advertise in your link with linkbucks, this is very nice site to earn money, i am already used it now


Saturday, September 1, 2012

c language program examples


Write C program to declare two variable named a and b with some integer value and print the addition subtraction, multiplication and division of this two numbers 


#include<stdio.h>
#include<conio.h>
void main()
{
        int a,b,c;
        clrscr();


        a=20;
        b=10;
        

        c=a+b;
        printf("\n Addition of a and b = %d",c);
        

        c=a-b;
        printf("\n\n Subtration of a and b = %d",c);
 

        c=a*b;
        printf("\n\n Multiplication of a and b = %d",c);
    

        c=a/b;
        printf("\n\n Division of a and b = %d",c);
        getch();
}

Friday, August 31, 2012

Facebook,Gmail and Windows 7 Tips and Tricks

Create funny status for twitter or facebook??

Using below site you can post flip status in your wall in facebook or twitter like "puǝıɹɟ oןןǝɥ". just write your status in text box of below site, automatic  create flip text in other text box and you can copy it and paste it in your wall.

Go to the site:- Click Here


++++++++++++++++++++++++++++++++++++++++++++++++++

How to post FACEBOOK or twitter status in advance??

just Go to the below site and you can post facebook status in advance as your time schedules.

Go to the Site: Click Here

++++++++++++++++++++++++++++++++++++++++++++++++++

How to send friend's profile pictures in chat in Facebook??



open the chat window...now type friend's profile id between two bracket like [[ profile id ]]how get profile id of friend: just goto the your friend's profile and you can see in addressbar...like facebook.com\john .you can write in chat box [[john]]  to send press enter.

+++++++++++++++++++++++++++++++++++++++++++++++++

Add smile symbol to your facebook status

you can add smile symbol at chat box easily but can you add smile symbol on your status,Big NO...But i will write trick just follow it....
Go to the  below site: 

Click here 

you will get downloading file at bottom of the site just download it and install it.now open Google crome browser (must be google crome) and you see symbol at near address bar and your status  text box of facebook page, and also included in chatting box.