How to check your codes online [ Online Compiler ]

By -

Codepad, is an online service which allows you to check the codes written by you, without installing any compiler. You just need to paste your code as shown below, choose the programming language via the radio button, and soon you will come across the output, or the errors in the code.

The service is quite simple to use, can be a very useful tool at times when you want to run the code on a machine which doesn’t have the required compiler.  Codes written in following languages can be tested, just with a mouse click.

  • C
  • C++
  • D
  • Haskell
  • OCaml
  • Perl
  • Python
  • Ruby
  • Scheme
  • Tcl.

Just paste the code you have in the editor and hit the run button.  If you do not want your code to be listed in public, make sure you have checked private checkbox.

CodePad Compiler

Once the code is compiled and executed,  you get three things :

  • A url where anybody can see the output. Useful if you want to share it with others.
  • Properly formatted and colour highlighter code
  • Output with Error details and mention of line number.
  • The Editor again if you want to change language and re run the code.

CodePad Output

 

You can also have a look to the codes people are trying on Codepad, with the help of link on top-right position of the page.



here to write articles about things which are somehow related to computers, internet (and at times, may be, to blogging as well). He wants to make an Identity for himself, he loves, testing new softwares and services which can really help to improve the productivity of individual. You can find Manav on , and .

20 Comments to How to check your codes online [ Online Compiler ]

  1. its nice for every to whom who want to work online without installing any program thanks for providing such neccesity function for all users

  2. // my first program in C++

    #include
    using namespace std;

    int main ()
    {
    cout << “Hello World!”;
    return 0;
    }

  3. @ Anuj, I don’t think user input is supported, as, after your comment I tried a code in C, but it didn’t support user input, moreover Codepad is just to check your codes, don’t consider it as a replacement of any compiler.

  4. #include

    void main(){
    int x = 2147483647;

    if(x=5)
    cout<<“x is “<<x<<“.”<<endl;

    if(x=-3)
    cout<<“x is “<<x<<“.”<<endl;

    if(x=0)
    cout<<“x is “<<x<<“.”<<endl;

    if(true)
    cout<<“This is true.”<<endl;

    if(false)
    cout<<“THis is false.”<<endl;

    if(4)
    cout<<“Huh?”<<endl;

    if(97)
    cout<<“Again?”<<endl;

    if(-107)
    cout<<“What now?”<<endl;

    if(-2)
    cout<<“Cosa ba???”<<endl;

    if(0)
    cout<<“Nah!”<<endl;

    }

  5. hey is my code correct to print the first ten numbers of fibonacci series
    #include
    #include
    void main()
    {
    int a,b,fib,i;
    a=1;
    b=1;
    printf(“%d”,a);
    printf(“%d”,b);
    for(i=3;i<=10;i++)
    {fib=a+b;
    printf(“%d”,fib);
    a=b+fib;
    printf(“%d”,a);
    b=a+fib;
    printf(“%d”,b);
    }
    getch();
    }

  6. #include

    int main() //Main Function
    {
    int i=0;

    for(;i<26;i++)
    {
    printf(” %c “,i+’a’); //Loop For Printing a-z
    }

    return 0;
    }

  7. #include
    #include
    #include
    #include
    #include

    int main()
    {

    double va,vl[6],vu[6],ra,rl[6],ru[6],rta,rtl[6],rtu[6];
    double mv[6],mr[6],mrt[6],Gl[6],Gu[6],G2l[6],G2u[6],G3l[6],G3u[6];
    double xl,xu,u,v,z;
    double f[6],fl[6],fu[6],acc;
    int i;

    Printf(“Enter the Accuracy “);
    scanf(“%lf”,&acc);
    va = (5.0025-4.9975)/6.0;

    for(i=0;i<6;i++)
    {
    vl[i]=4.9975+ va*i;
    vu[i]=4.995+i*va+va;
    }

    printf(“The Vin box values are:”);

    for(i=0;i<6;i++)
    printf(“%f %f\t”,vl[i],vu[i]);

    ra= (1100-900)/6;

    for (i=0;i<6;i++)
    {
    rl[i]=900+i*ra;
    ru[i]=900+i*ra+ra;
    }

    for(i=0;i<6;i++)
    printf(“R valuesin boxes%f %f\t”, rl[i],ru[i]);

    rta= (1190.55-1179.45)/6.0;

    for(i=0;i<6;i++)
    {
    rtl[i]=1179.45+i*rta;
    rtu[i]=1179.45+i*rta+rta;
    }

    for(i=0;i<6;i++)
    printf(“Rt values in boxes%f %f\t”,rtl[i],rtu[i]);

    for(i=0;i<6;i++)
    {
    mv[i]=(vl[i]+vu[i])/2;
    mr[i]=(rl[i]+ru[i])/2;
    mrt[i]=(rtl[i]+rtu[i])/2;
    }

    for(i=0;i 0)
    u= gl[i];
    else
    u=gu[i];

    if(G2l>0)
    v=g2l[i];
    else
    v=g2u[i];

    if(G3l>0)
    z=g3l[i];
    else
    z=g3u[i];

    f[i]=u[ (1/(1+v) – (1/(1+z)));

    fl[i]= xl+f[i];
    fu[i]=xu+f[i];

    if(fl[i]<acc)
    i++;
    else
    {
    print(“Limit values are %f %f”,&fl[i],&fu[i]);
    exit(0);
    }
    }

    }

  8. include
    bool f();
    int main(void){
    bool life,death;
    life=false;
    if(life)
    cout<<"death is not!";
    else
    cout<<"he is death!";
    if(f())
    cout<<"After fonction f,"<<endl<<"death is true);
    else
    cout<<"After fonction f,"<<endl<<"death is false!);
    return 0;
    }
    bool f(){
    short n;
    cout<<"wath?"<<endl<>n;
    if(n>=1)
    return true;
    else
    return false;
    }

    // Have Fun =)

  9. @Manav – I have found your art. looking for “online compiler”s but CodePad is more like “Online Debugger”. There is also similar site ideone.com, which provides more languages (inluding bash) and input data.

  10. goldberg

    I am trying to make a console application , but it is not working correctly plz help me.
    Question is : 1. Declare an integer type array.
    2. Take input from user in the array i.e. 10 integer values.
    3. Pass this array to a function which will calculate and display the number of times an element is repeated.
    4. If the array contains elements with repetition, the program should only display the repeated elements and their count.
    5. If there is no repetition in the array, the program should simply display the message “There is no repetition in the array”.
    Can you please give me the code for the above program.

  11. Problem Statement: Recognizing and Splitting the string.
    You are required to write a program that takes a phone number as input from the user and stores it as a string value. The phone number will consist of country code, city code and actual 7-digit number separated by “-”. User can enter the phone number in any order. Your program should be able to recognize the country code, city code and 7-digit number and display it in the following format.
    Country code – City code – 7-digit number

    Detailed Description:

    1. Take phone number as input from the user.
    2. The number should be stored as a string value.
    3. User can enter the phone number in any order for example 0092-333-1234567 or 333-0092-1234567 or 1234567-333-0092 etc.
    4. Program should be able to recognize country code, city code and 7-digit number from the string and display it in the right sequence.

  12. #include
    #define M 50

    #define F(x,y)=pow(x,y)
    void main()
    {

    printf(“M=%d”,M);
    int c;
    c=F(3,4);
    printf (“c=%d”,c);

    }

  13. im using window 7 and turboc is nt working due to 64 bit …so plzzz subject the alternative software or downloading site for turbo c for 64 bit

Leave a Reply

Stats