the program should print
1 this one should have six spaces and then 1
22 5 spaces then 2
333 and so on
4444 sum reason when i post here it aligns left
55555
666666
though it prints...
1
22
333
4444
55555
666666
#include <iostream>
using namespace std;
int main()
{
int i,f,d;
d=0;
while(d<=5){
d++;
for (i=1;i<=1;i++){
for (f=i;f<=d;f++)
cout << d ;
}cout << endl;
}
return 0;
}