.______M_u_h_a_n_d_i_s_k______.
KOMPILASI NOTA-NOTA KEHIDUPAN DAN PERINGATAN UNTUK DIRI SENDIRI
Pages
Home
Wisdom of Doa
Method of Doa
Doa
سورة الفاتحة
IIUM
|
MyIIUM
|
E-learning
|
Microsoft
|
Wolfram Alpha
|
Medical Terms Dictionary
|
Google Translate
|
Google Maps
Specifying an Array's Size with a Symbolic Constant and Initializing Array Elements with Calculations
#include<stdio.h>
#define SIZE 10
int main (void)
{
int s[SIZE];
int j;
for(j = 0; j<SIZE; j++){
s[j] = 2+2*j;
}
printf( "%s%13s\n", "Element", "Value");
for(j=0; j<SIZE; j++){
printf("%7d%13d\n",j, s[j]);
}
system ("pause");
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment