Ad Code

NEW POST

6/recent/ticker-posts

Vinod is part of Great Indian Survey NGO who were collecting peoples year of birth for the detailed analysis on that particular year's population.

... 

concept: we have print only last two digits so we can use %100 to print the last two digits number

#include <stdio.h>
int main()
{int year,yr;
scanf("%d",&yr);
year=yr%100;
printf("%02d",year);

return 0;}

Post a Comment

0 Comments