1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: How to perform Loop in VDCT |
From: | "Dalesio, Leo" <[email protected]> |
To: | priya tiwari <[email protected]>, "[email protected]" <[email protected]> |
Date: | Thu, 13 Nov 2014 12:38:47 +0000 |
Look at the operations that can be done in a CALC record. There is a C "?" operation. You can use that as an if/then/else to get the condition. YOu can use an output record to stop
the loop from running - or a disable of the root record.
From: [email protected] [[email protected]] on behalf of priya tiwari [[email protected]]
Sent: Thursday, November 13, 2014 1:51 AM To: [email protected] Subject: How to perform Loop in VDCT How to perform "for loop" in VDCT?
I want to try this program in VDCT .float avg;
int sum=0;int i,j;
for (i=0;i<20;i++)
{ for(j=0;j<10;j++)
{ if(j%2==0)
{ sum=sum+100;
}
else
{ diff=-100;
}
avg=(sum+diff)/10;
printf("%f",avg);
}
}
what type of record and field is used for this program in VDCT?
please provide me solution?
Thanks in advance......
|