Skip to content
View gpBhupesh04gp's full-sized avatar
  • chennai
  • 11:43 (UTC -12:00)

Block or report gpBhupesh04gp

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
gpBhupesh04gp/README.md

#include <stdio.h>

int main() {

/* Let the largest number be initially 0. */
int a[10], i = 0, largest = 0;

/* While loop to get user input and find the largest number. */
while (i < 10) {
    printf("Enter number %d:", i + 1);
    scanf("%d", &a[i]);

    /* If the current number (i.e. a[i]) entered by user is greater than the last value of ‘largest’ variable then the current number (a[i]) becomes the new largest number. */
    if (a[i] > largest)
        largest = a[i];

    i++;
}

/* For loop to print the content of array. */
printf("The array is: ");
for (int i = 0; i < 10; i++) {
    printf("%d ", a[i]);
}

printf ("\nThe largest number in the array is: %d", largest);

return 0;

}

Popular repositories Loading

  1. gpBhupesh04gp gpBhupesh04gp Public

    Config files for my GitHub profile.

    C 1

  2. youtube-git youtube-git Public

    1

  3. Main.c Main.c Public

  4. hai.c hai.c Public

  5. hai. hai. Public