You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
/*
|
|
* C Program to Extract Last two Digits of a given Year
|
|
*/
|
|
#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;
|
|
} |