blackstar
|
codepad
|
|
blackstar
|
Saved pastes by blackstar:
#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) |
#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) |
#include <stdio.h>
// Print a list of numbers from 1 to 10
// Declare the variable, called UB40
// Initialise the variable
|
view (14 lines) |
// 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) |
// 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) |
// 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) |
#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
$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
$myarray = array(3, 6, 9, "hey!", array("a", "b", "c"));
?>
<?php
echo $myarray[3];
|
view (8 lines, 1 line of output) |