English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1 answers

#include

int main(){
int multiplesOfTwo[10]; //to find the first ten multiples
int i;
for(i=0;i<10;i++)
multiplesOfTwo[i]=2*(i+1);

for(i=0;i<10;i++)
printf(" 2 * %d =%d \n", i+1,multiplesOfTwo[i]);

return(0);
}

2006-09-13 23:07:01 · answer #1 · answered by Y Raghavendra Reddy 2 · 0 0

fedest.com, questions and answers