[ create a new paste ] login | about

Recent Pastes:

C, pasted 5 seconds ago:
1
2
3
4
5
#include<stdio.h>}
int main()
{
int i =1;
for(i=1;i<=10;i++)
...
view (10 lines, 3 lines of output)
C, pasted 9 seconds ago:
1
2
3
4
5
#include <stdio.h>
main()
{
printf("i started learning c.");
}
view (5 lines, 2 lines of output)
C, pasted 44 seconds ago:
1
#include<stdio.h> #include<stdlib.h> void i_sort(int *a,int n){ 	int i,j,temp; 	for(i=1;i<n;i++){ 		temp=a[i]; 		j=i-1; 		while((temp<a[j])&&(j>=0)){ 			a[j+1]=a[j]; 			j--; 		} 		a[j+1]=temp; 	} } void take_array(int *a,int n){ 	int i; 	printf("Enter values:\n");     for(i=0;i<n;i++)         scanf("%d",a+i); } void print_array(int *a,int n){ 	int i; 	printf("Array after sorting:\n"); 	for(i=0;i<n;i++)         printf(" %d-->",*(a+i)); 	printf("\n"); } void main(){ 	int n; 	printf("Enter Size of the array:\n"); 	scanf("%d",&n); 	int *a=(int *)malloc(sizeof(int)*n); 	take_array(a,n); 	i_sort(a,n); 	print_array(a,n); }
view (1 line, 2 lines of output)
C, pasted 45 seconds ago:
1
2
3
4
5
#include <stdio.h>

int proc1(int num) {   
    proc2(num);
    num++;
...
view (24 lines, 6 lines of output)
C++, pasted 1 minute ago:
1
2
3
4
5
#include <iostream>
 
using namespace std;
 
int main( )
...
view (13 lines, 1 line of output)
C, pasted 1 minute ago:
1
2
3
4
5
#include<stdio.h>}
int main()
{
int i =1;
for(i=1;i<=10;i++)
...
view (10 lines, 4 lines of output)
C, pasted 1 minute ago:
1
2
3
4
5
#include<stdio.h>
int main ()
{
int a [5],i;
for (i=0;i <5;i++)
...
view (10 lines, 2 lines of output)
C, pasted 1 minute ago:
1
2
3
4
5
#include <stdio.h>

int proc2(int num) {
    printf("%d\n", num);
}
...
view (22 lines, 4 lines of output)
C, pasted 1 minute ago:
1
2
3
4
5
#include<stdio.h>}
int main()
{
int i =1;
for(i=1;i<=10;i++)
...
view (10 lines, 4 lines of output)
C, pasted 2 minutes ago:
1
2
3
4
5
/*this program has a symbolic named STARS*/
#include <stdio.h>
#define STARS "******"
main()
{
...
view (9 lines, 4 lines of output)
C, pasted 2 minutes ago:
1
2
3
4
5
#include<stdio.h>
void main()
{
printf("Hi");
}
view (5 lines, 1 line of output)
C, pasted 2 minutes ago:
1
2
3
4
5
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
...
view (16 lines, 3 lines of output)
C++, pasted 2 minutes ago:
1
2
3
4
5
#include <iostream>
int Area(int lenght,int weigh);
int main()
{
	using std::cout;
...
view (24 lines, 1 line of output)
C++, pasted 3 minutes ago:
1
2
3
4
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <cmath>
...
view (56 lines, 6 lines of output)
C, pasted 3 minutes ago:
1
2
3
4
5
#include <stdio.h>
    int main()
    {
        int x =-1;
        if (x>>1)
...
view (7 lines, 3 lines of output)
C++, pasted 3 minutes ago:
1
2
3
4
5
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
...
view (16 lines, 7 lines of output)
C, pasted 3 minutes ago:
1
2
3
4
5
#include<stdio.h>}
int main()
(
{
int i =1;
...
view (11 lines, 2 lines of output)
Python, pasted 3 minutes ago:
1
2
for x in range(10)
    print x
view (2 lines, 4 lines of output)
C++, pasted 3 minutes ago:
1
2
3
4
5
#include <iostream>
int Area(int lenght,int weigh);
int main()
{
	using std::cout;
...
view (24 lines, 3 lines of output)
C, pasted 4 minutes ago:
1
2
3
4
5
#include <stdio.h>

int proc1(int num)
{
    proc2(num);
...
view (19 lines, 2 lines of output)