URI Problem 1962 (A Long Long Time Ago) solution( Bangla ) | C language

**Before watching this make sure that you’ve tried enough**

#include<stdio.h>
int main()
{
    int i,n,year;//declaring variables
    scanf("%d",&n);//test case input
    for(i =  0;i < n;i++){
        scanf("%d",&year);
        if(year > 2015)printf("%d A.C.\n",year-2014);
        else if(year < 2015)printf("%d D.C.\n",2015-year);
        else printf("1 A.C.\n");
    }
    return 0;
}

 

If this solution helped you, please share this with your friends.
And if you have anything to say, let me know in the comment section.

More solutions are coming so Like our Facebook page and Subscribe to our YouTube channel to stay connected.

Leave a Comment