Monday, April 10, 2017

How to print percentage "%" in C language

Generally it does not print percentage while we put single percentage ("%").But if we put double percentage ("%") in printf then percentage is printed..The example is given below...

1.
    printf("100%");

    Output :  100

2.

   printf("100%%");

   Output : 100%


Try it....

No comments:

Post a Comment