Skip to content

Instantly share code, notes, and snippets.

@enricllagostera
Created October 21, 2014 16:52
Show Gist options
  • Save enricllagostera/9c2331ef23d9e88f1626 to your computer and use it in GitHub Desktop.
Save enricllagostera/9c2331ef23d9e88f1626 to your computer and use it in GitHub Desktop.
Escreva um script que calcule e mostre a tabuada (até 10x) de um número qualquer, digitado pelo usuário.
using UnityEngine;
using System.Collections;
public class Tabuada : MonoBehaviour
{
public int num;
void Start ()
{
for (int mult = 0; mult <= 10; mult++)
{
print (num * mult);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment