using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
int left;
int right;
float b;
string c;
bool d;
public float _moveSpeed;
// Start is called before the first frame update
void Start()
{
left = 13;
right = 5;
print(Plus(left, right));
print(Minus(left, right));
print(Muti(left, right));
print(Devide(left, right));
print(left % right);
}
// Update is called once per frame
void Update()
{
}
int Plus(int q, int w)
{
return q + w;
}
int Minus(int q, int w)
{
return q - w;
}
int Muti(int q, int w)
{
return q * w;
}
float Devide(float q, float w)
{
return q / w;
}
}
댓글남기기