Saturday, October 17, 2020

simple c program to half the number

 #include <stdio.h>

int main()

{

    int n;

    printf("Enter n:");

    scanf("%d", &n);

    n = n / 2;

    printf("Answer = %d", n);

    return 0;

}

No comments:

Post a Comment

Finding Direction: Navigating Career Goals and Life Aspirations

  Finding Direction: Navigating Career Goals and Life Aspirations Life often presents us with a myriad of choices, and the path to fulfillme...