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....
1.
printf("100%");
Output : 100
2.
printf("100%%");
Output : 100%
Try it....
No comments:
Post a Comment