Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "simpletools.h" // Include simpletools
- int main() // main function
- {
- int p[] = {1, 2, 3, 5, 7, 11, 13, 17, 19, 23}; // Initialize the array
- for(int i = 0; i < sizeof(p)/sizeof(int); i++)
- {
- pause(500); // 1/2 second pause
- p[i] = p[i] * 100;
- printf("p[%d] = %d\n", i, p[i]); // Display array element & value
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement