I can get my triangle to be left justified, but i have tried almost every combination of using spaces to move my triangle over to be right justified and i am absolutely stuck, please help.
#include <iostream>
using namespace std;
int main ()
{
int value,rowcount=0, starcount=0,initrow=0,starlinesize,spacecount;