Skip to content

Instantly share code, notes, and snippets.

View gmfc's full-sized avatar
🏠
Working from home

Gabriel Melo Correia gmfc

🏠
Working from home
View GitHub Profile
@gmfc
gmfc / proc.java
Created May 13, 2013 14:44
Procedimentos_métodos
class exemplo{
static double atributo1; //atributos da classe
public static void main(Strings args[]){
//main
}
public static void procedimento(){
//procedimento
}
}
@gmfc
gmfc / sqrt.java
Created May 9, 2013 11:15
Metodo de Newton para raiz quadrada.
import java.util.*;
class prog{
public static void main(String [] args){
double xa,n,eps,xn;
Scanner s = new Scanner(System.in);
xa = s.nextDouble();
n = s.nextDouble();
eps = s.nextDouble();
xn = xa - (xa*xa-n)/(2*xa);
class programa{
public static void main(String args[]){
System.out.println("Olá mundo");
}
}
@gmfc
gmfc / file.rb
Created May 8, 2013 22:03
Gist criando pelo Android
puts 'ola mundo'