#include < stdio.h> int main() { int year, yr; printf("Enter the year "); scanf("%d", &year); yr = year % 100; printf("Last two digits of year is: %02d", yr); return 0; }
Output
Enter the year 2012 Last two digits of year is: 12
For More Details Please Visit Ictjobs.info
No comments:
Post a Comment