[ create a new paste ] login | about

Recent Pastes:

C, pasted 1 second ago:
1
2
3
4
5
#include <iostream>
using namespace std;

int main()
{
...
view (231 lines)
C, pasted 1 minute ago:
1
2
3
4
5
#include <iostream>
using namespace std;

int main()
{
...
view (232 lines, 117 lines of output)
C, pasted 1 minute ago:
1
2
3
4
5
/**
 * C program to toggle nth bit of a number
 */

#include <stdio.h>
...
view (33 lines, 4 lines of output)
C, pasted 2 minutes ago:
1
2
3
4
5
#include <stdio.h>
#include <stdlib.h>

int a = 1234567;
int main(void){
...
view (11 lines, 1 line of output)
Perl, pasted 3 minutes ago:
1
print 3+5+9
view (1 line, 1 line of output)
Perl, pasted 4 minutes ago:
1
print 3+5+9
view (1 line, 1 line of output)
C, pasted 4 minutes ago:
1
2
3
4
5
#include <iostream>
using namespace std;

int main()
{
...
view (232 lines, 120 lines of output)
Perl, pasted 8 minutes ago:
1
print 3+5+9
view (1 line, 1 line of output)
Perl, pasted 9 minutes ago:
1
print 3+5+9
view (1 line, 1 line of output)
Python, pasted 12 minutes ago:
1
2
3
4
5
file="test.txt" #can be changed to your file path 
total_file_lines=0 #file lines
debug=False #prints more info about what is happening if true
if ".txt" not in file: #add a .txt if the user forgot to add it
    file+=".txt"
...
view (52 lines)
Python, pasted 12 minutes ago:
1
2
3
4
5
file="test.txt" #can be changed to your file path 
total_file_lines=0 #file lines
debug=False #prints more info about what is happening if true
if ".txt" not in file: #add a .txt if the user forgot to add it
    file+=".txt"
...
view (52 lines, 5 lines of output)
Perl, pasted 13 minutes ago:
1
2
3
use File::Basename;
#print basename("/hello/foo.txt");
print dirname("/foo.txt");
view (3 lines, 1 line of output)
Perl, pasted 13 minutes ago:
1
2
3
use File::Basename;
#print basename("/hello/foo.txt");
print dirname("foo.txt");
view (3 lines, 1 line of output)
Perl, pasted 13 minutes ago:
1
2
3
use File::Basename;
print basename("/hello/foo.txt");
print dirname("/hello/foo.txt");
view (3 lines, 1 line of output)
Perl, pasted 14 minutes ago:
1
print 3+5+9
view (1 line, 1 line of output)
Perl, pasted 14 minutes ago:
1
print 3+5+9
view (1 line, 1 line of output)
Perl, pasted 15 minutes ago:
1
2
use File::Basename;
print basename("/hello/foo.txt");
view (2 lines, 1 line of output)
Perl, pasted 15 minutes ago:
1
2
use File::Basename;
print basename("foo.txt");
view (2 lines, 1 line of output)
Perl, pasted 16 minutes ago:
1
2
use File::Basename;
basename("foo.txt")
view (2 lines)
Perl, pasted 16 minutes ago:
1
basename("foo.txt")
view (1 line, 1 line of output)