Hi
I have two string
string A=‘1234’
string B=‘123456’
how can i display like this? i want them right aligned .
1234
123456
thanks!
Hi
I have two string
string A=‘1234’
string B=‘123456’
how can i display like this? i want them right aligned .
1234
123456
thanks!
In reply to timag:
If I understood your question correctly then you want your output like,
1234
123456
As your max string size is 6 characters, you can use %6s as the format specifier in display statement.
Exa: $display(“%6s”,A);