for文

今作っている、プログラムのソースファイルです。

#include
int main ()
{
int index , n ;
n = 0 ;
for( index = 1 , index <= 1000 , index++ )
{
n =n + index ;
}
}

こんな感じです。

訂正版です。・・・・

#include
int main ()
{
int count ;
for ( count = 0 ; count <10 ; count ++)
{
printf("Hello !!\n" ) ;
}
}
これでHello !!\n*10の文です。なかなか、いみないけど、これから使えるようになるかな・・・