Skip to content

2KAbhishek/polyquine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

A quine is a computer programming that prints its own source code when executed.

A polyquine does the same thing for multiple programming languages.

This repo contains such a polyquine written in C, Perl, PHP, Python and Ruby.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed the latest version of gcc, perl, php, python and ruby.

Getting polyquine

To get polyquine, follow these steps:

git clone https://github.com/2kabhishek/polyquine
cd polyquine

Running polyquine

# For C
gcc polyquine.c
./a.out

# For perl
perl polyquine.pl

# For PHP
php polyquine.php

# For Python
python polyquine.py

# For Ruby
ruby polyquine.rb

Hit the ⭐ button if you found this useful.

More Info