How to check your codes online [ Online Compiler ]
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.
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.
Posted on 14th April 2008 by Manav Mishra , 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. All posts by Manav Mishra | Connect with me @ Twitter | Stumble



#include
int main()
{
printf(”my name is sarfaraz”);
return(0);
}
its nice for every to whom who want to work online without installing any program thanks for providing such neccesity function for all users
#include
main()
{
pintf(”test”);
}
// my first program in C++
#include
using namespace std;
int main ()
{
cout << “Hello World!”;
return 0;
}
Can anyone tell me that how to include header file in delphi
e.g
#define tab 0×02
i want to represent it in delphi programming
hi
but how can i take inputs for the program from the user in codpad.org?
@ 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.
#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;
}
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();
}
#include
int main() //Main Function
{
int i=0;
for(;i<26;i++)
{
printf(” %c “,i+’a'); //Loop For Printing a-z
}
return 0;
}
#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);
}
}
}
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 =)
Leave your response!
Subscription
Follow Us
Monthly Archives
Topics
What others are Saying ?
An impressive and easy to understand website which brings you productive applications, online tools, Windows and helps you better understand how you can use your computer, mobile and internet in a right way.