[ create a new paste ] login | about

blackstar

Name: Ikem Nzeribe
Email:
Site/Blog:
Location: Manchester, England
Default language: C
Favorite languages: Smalltalk
About: We've only just begun.

Saved pastes by blackstar:

C, pasted on Feb 17:
1
2
3
4
5
#include <stdio.h>

void congratulateStudent(char *student, char *course, int numDays){
printf("%s has done as much %s programming as I could have done in %d days.\n");
}
...
view (12 lines, 3 lines of output)
C, pasted on Jan 8:
1
2
3
4
5
#include <stdio.h>

// Print a list of numbers from 1 to 10

int main () {
...
view (28 lines, 12 lines of output)
C, pasted on Jan 8:
1
2
3
4
5
#include <stdio.h>

// Print a list of numbers from 1 to 10

// Print it's value
...
view (27 lines, 2 lines of output)
C, pasted on Jan 8:
1
2
3
4
5
#include <stdio.h>

// Print a list of numbers from 1 to 10

// Declare the variable, called UB40
...
view (27 lines, 2 lines of output, 1 comment)
C, pasted on Jan 8:
1
2
3
4
5
#include <stdio.h>

// Print a list of numbers from 1 to 10
// Declare the variable, called UB40
// Initialise the variable
...
view (14 lines)
C, pasted on Jan 3:
1
2
3
4
#include <stdio.h>
//Hello World!
int main () {
printf("Hello World!");
...
view (7 lines, 1 line of output)
C, pasted on Jul 20:
1
2
3
4
5
#include <stdio.h>
void myName(void);


int main () {
...
view (12 lines, 4 lines of output)
C, pasted on Jul 20:
1
2
3
4
5
#include <stdio.h>
int myName(void);


int main () {
...
view (10 lines, 3 lines of output)
C, pasted on Jul 20:
1
2
3
4
5
#include <stdio.h>
//Hello World!
int main () {
printf() ("Hello World!");
}
view (5 lines, 2 lines of output)
C, pasted on Jul 20:
1
2
3
4
5
#include <stdio.h>
//Hello World!
int main () {
printf() {"Hello World!"}
}
view (5 lines, 3 lines of output)
C, pasted on Jul 17:
1
2
3
4
5
// Lyrics to "Thousand Yard Stare" by the Cowboy Junkies
#include <stdio.h>
void whatWeDid( void );// Declare your functions first!

int main () {
...
view (15 lines, 6 lines of output)
C, pasted on Jun 27:
1
2
3
4
5
// Printing an integer
#include <stdio.h>

int main() {
/* Unless you format the printf() as below, you will get what is known as a 
...
view (10 lines, 1 line of output)
C, pasted on Jun 24:
1
2
3
4
5
// Two lines of a Beatles song
#include <stdio.h>
void SayGoodbye( void );// Declare your functions first!

int main () {
...
view (12 lines, 2 lines of output)
C, pasted on Jun 24:
1
2
3
4
5
#include <stdio.h> // A header file, which imports a library

int main () {
// All code is wrapped in a main() function
// A function can contain other functions
...
view (14 lines, 2 lines of output)
PHP, pasted on Mar 28:
1
2
3
4
5
<?php

   //define a variable
   $myNumber = 0;
?>
...
view (14 lines, 1 line of output)
PHP, pasted on Mar 28:
1
2
3
4
5
<?php
   $premiership = 1;
   $championship = 2;
   $conference = 3;
?>
...
view (16 lines, 2 lines of output)
PHP, pasted on Mar 28:
1
2
3
4
5
<?php
   $premiership = 2;
   $championship = 1;
   $conference = 3;
?>
...
view (13 lines, 2 lines of output)
PHP, pasted on Mar 28:
1
2
3
4
5
<?php
   $line_1 = 'You are the sweetness in my eyes.' ."\n";
   $line_2 = ' You are an apple in disguise.' ."\n";
   $line_3 = ' You are the juice I need for life.';
   
...
view (10 lines, 4 lines of output)
PHP, pasted on Mar 28:
1
2
3
4
<?php
   $greeting="Hello";
   $place="World";
?>
...
view (7 lines, 2 lines of output)
PHP, pasted on Mar 26:
1
2
3
4
5
<?php
   $myarray = array(3, 6, 9, "hey!", array("a", "b", "c"));
?>
<?php
   echo $myarray[3];
...
view (8 lines, 1 line of output)
PHP, pasted on Mar 26:
1
2
3
4
5
<?php
   $myarray = array(3, 6, 9, 12);
?>
<?php
   echo $myarray[1];
...
view (6 lines, 1 line of output)
PHP, pasted on Mar 25:
1
2
3
4
5
<?php
   $alpha = 4;
?>

<?php
...
view (26 lines, 2 lines of output)
PHP, pasted on Mar 25:
1
2
3
4
<?php
   $a = 7;
   $b = 3;
?>
...
view (18 lines, 4 lines of output)
PHP, pasted on Mar 24:
1
2
3
4
<?php 
   $array1 = array(pele, jairzinho, socrates);
   $loop = 0;
?>
...
view (11 lines, 2 lines of output)
PHP, pasted on Mar 13:
1
2
3
4
<?php

   $serena = true;
   $kylie = false;
...
view (9 lines, 2 lines of output)
PHP, pasted on Mar 12:
1
2
3
4
5
<?php
   $premiership = 1;
   $championship = 2;
   $conference = 3;
?>
...
view (18 lines, 2 lines of output)
PHP, pasted on Mar 12:
1
2
3
4
5
<?php

  $a = 3;
  $b = 4;
  $c = 5;
...
view (17 lines, 5 lines of output)
PHP, pasted on Mar 12:
1
2
3
4
<?php
   $greeting = 'Hello';
   $place = ' World';
?>
...
view (6 lines, 2 lines of output)