Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main() {
- int size, i;
- printf("Enter the size of your array: ");
- scanf("%d", &size);
- int marks[size];
- for (i = 0; i < size; i++) {
- printf("%d. Enter marks: ", i+1);
- scanf("%d", &marks[i]);
- }
- printf("\nYou entered\n");
- for (i = 0; i < size; i++) {
- printf("Marks: %d\n", marks[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment