{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

H includestdlibh includestringh

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } printf("\n"); } printf("\n"); system("PAUSE"); return 0; } Problem 4: #include<stdio.h> #include<stdlib.h> int main(){ int array[10]; int i; for (i=0;i<10;i++) array[i]=i+1; printf("Printing the array...\n"); for(i=0;i<10;i++){ printf("%d ",array[i]); } printf("\n"); for(i=1;i<10;i++){ array[i]=array[i‐1]+array[i]; } printf("\nPrinting the array after modification...\n"); for(i=0;i<10;i++){ printf("%d ",array[i]); } printf("\n\n"); system("PAUSE"); return 0; } Problem 5: #include<stdio.h> #include<stdlib.h> #include<string.h> void printR...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online