I am relatively new to programming. I need to calculate the aspect ratio(16:9 or 4:3) from a given dimension say axb. How can I achieve this using C#. Any help would be deeply appreciated.
public string AspectRatio(int x, int y)
{
//code am looking for
return ratio
}
Thanks.