I understand the basic functions of MIPS, but I do not understand how to declare variables and especially do not understand how to write the equivalent of scanf()/printf() in MIPS (can't find anything about them online when I search). Here is the code I am trying to translate for now:
#include <stdio>
int main(int argc, char* argv[])
{
unsigned long int n;
scanf("%d", &n);
printf("%lu",fact(n));
}
Any guidance?