Solved programming problem

How to use Divide and Assignment operator in C.

Source code

#include <stdio.h>

int main()

{

    int n;

    printf("Please Enter Value: ");

    scanf("%d",&n);

    n /=5; /// this line means n = n/5;

    printf(" Your Value is: %d",n);

    return 0;

}

Output

Please Enter  Value:15

Your Value is:3

 

Join the discussion

Add your comment