Skip to content

Instantly share code, notes, and snippets.

View ofou's full-sized avatar
🚀
Launching

Omar Olivares Urrutia ofou

🚀
Launching
View GitHub Profile
@ofou
ofou / multiples.java
Last active September 2, 2016 02:59
Print multiples of a given positive number and error message if negative
import java.util.Scanner;
/**
* Created by @ofrancisco on 9/1/16.
*/
public class Main {
public static void main(String[] args) {
Scanner lector = new Scanner(System.in);
int numeroUsuario = lector.nextInt();
if(numeroUsuario<0){
@ofou
ofou / cuenta.java
Last active August 25, 2016 23:40
Cuenta números pares si es que el número ingresado es positivo o impares si es que el número ingresado es negativo.
public class ParImpar{
int numeroUsuario;
public int cuenta(int numeroUsuario){
int contador = 0;
int suma = 0;
if (numeroUsuario<0){
//suma negativos
while(contador!=numeroUsuario-1){
if(contador % 2 == 0){
contador = contador - 1;
@ofou
ofou / notes.md
Last active August 19, 2016 21:26
Best tools for writing notes and papers with LATEX
  • classeur for writing Markdown with LATEX and realtime feedback.
  • authorea for writing papers with AWESOME templates. LATEX, Markdown, bibtex, etc.