// Online C compiler to run C program online #include <stdio.h> int main() { printf("Enter the size of the array: "); int size; scanf("%d", &size); int points[size]; int focalnumber; printf("Enter the focal number: "); scanf("%d", &focalnumber); for(int i = 0; i < size; i++){ printf("\nElement - %d: ", i+1); scanf("%d", &points[i]); } for(int i = 0; i < size; i++){ if(points[i]>focalnumber){ printf("%d ", points[i]); points[i]++; } } return 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter