categoryC覚書

#define

trackback0  comment0
プログラミング覚書 C-004

#define
----------------------------------------------------------------------

#include

#define LS 1.50
#define US 1.80
#define STEP 0.05

main()
{
double shintyou, taijyuu;

for (shintyou = LS; shintyou <= US;
shintyou = shintyou + STEP) {
taijyuu = shintyou * shintyou * 22.0;
printf("%8.2f %8.2f\n", shintyou, taijyuu);
}
}

----------------------------------------------------------------------
関連記事
 









        
 
http://greenwind888.blog.fc2.com/tb.php/90-7aca7eff