hi guys,
I know this may sound funny to you . But that is what my requirement is
In a line i have to fill with *** symbols
like ****abcd******
****def*******
This is how i want.
before abcd and def i can give directly in form because its fixed no of * but at the end the no of * varies.
i tried to find the legth for abcd = 4
def = 3
starting from ato end of line i have space for 11 char
s = ***********
l = length of abcd
f = 11 - l = 11-4 for abcd
11-3 for def
s1 = s + 0(f)
then s1 has ******* for abcd
for def
then in form i have written like this
*****abcd&s1&
i have the req no of * in driver program but it does print in my output.
i guess the value **** is not carried to form.
Thanks
venki
i
Add a comment