static void Table2(Args _args)
{
int i,j,c,counter=1;
Dialog d =new Dialog("Muliplication Tables");
DialogField df1,df2;
df1=d.addField(extendedTypeStr(Num),"Enter the multiplier table to display");
df2=d.addField(extendedTypeStr(Num),"Enter the multiplicant table to display");
if(d.run())
{
i=any2int(df1.value());
j=any2int(df2.value());
while (counter<=j)
{
c=counter*i;
counter++;
info(strFmt("%1",c));
}
}
}
{
int i,j,c,counter=1;
Dialog d =new Dialog("Muliplication Tables");
DialogField df1,df2;
df1=d.addField(extendedTypeStr(Num),"Enter the multiplier table to display");
df2=d.addField(extendedTypeStr(Num),"Enter the multiplicant table to display");
if(d.run())
{
i=any2int(df1.value());
j=any2int(df2.value());
while (counter<=j)
{
c=counter*i;
counter++;
info(strFmt("%1",c));
}
}
}
No comments:
Post a Comment