TabuadeX in C++

#include
using namespace std;


int main()
{
int y;
int z;
cout << "Digite um numero" << endl;
cin >> y;
cout << "A tabuada para em que numero" < cin >> z;
for (int x = 1; x < z+1; x++)
{
cout << x*y << endl;
}

cin.get();

return 0;
}

Euclidean algorithm in Python

#/usr/bin/python
# -*- coding: utf-8 -*-
#Algoritmo de Euclides
x = float(input(' Digite um número: '))
y = float(input(' Digite o outro número: '))
if x < y:
print 'Lamento, mas não se pode fazer o MDC dessa forma'

while True:
r = x % y
x = y
y = r
if y == 0: break
print "Pronto, acabou, o resultado; %f" % x

Dollar and Real in Ruby [edit]

#Transformando dólar
puts "Bem-vindo a um programa que transforma dolares em reais e vice-versa"
puts "Entao, quanto vale o dolar hoje?"
d = gets.chomp
puts" Digite 1 para converter os dolares em reais e 2 para os reais em dolares"
opcao = gets.chomp
if opcao == "1"
puts "Quantos dolares voce tem?"
a = gets
t = d.to_i * a.to_i
puts t
else
puts "Quantos reais serao transformados?"
r = gets
t = r.to_i / d.to_i
puts t
end

Natal Livre, eu vou palestrar!



Evento realizado em Fortaleza/CE para os interessados em Linux e Software Livre com o intuito de mostrar as facilidades deste mundo para novos usuários.
Para mais informações: http://www.natallivre2008.blogspot.com/
Vou palestrar sobre internet no linux.
Espero quem estiver interessado lá!

Learning Ruby

#Transformador de palavras
puts 'Bem vindo ao meu primeiro script em Ruby'
puts 'Digite uma frase e eu retomarei outra forma de você falar'
frase = gets
puts frase .reverse


I'm learning here: http://tryruby.hobix.com/

Blur / The Universal

A great song, the lyric remember the movie/book A Clockwork Orange.

My favorite part is:
"It really really really could happen
Yes it really really really could happen
When the days they seem to fall through you
Just let them go"

TabuadeX

This script was made by me. Suddenly today became a good idea. So i created the "TabuadeX":

Image made on GIMP

The script is this:


#usr/bin/python
# -*- coding: utf-8 -*-
print " _ _ _"
print "| |_ __ _| |__ _ _ __ _ __| | _____ __"
print "| __/ _` | '_ \| | | |/ _` |/ _` |/ _ \ \/ /"
print "| || (_| | |_) | |_| | (_| | (_| | __/> <"
print " \__\__,_|_.__/ \__,_|\__,_|\__,_|\___/_/\_\ "
print "\n Olá, este programa serve para você fazer tabuadas de um número qualquer"
n = input("Pronto, comece digitando o número ao qual quer criar uma tabuada:")
x = input("Digite agora até onde irá a tabuada:")
for p in range(1,x+1): print p, p*n


Images: