Friday, 5 January 2018

How to Find a year is a leap year





#include <stdio.h>

#include <conio.h>



main()

{



int year;



printf("Enter the year: ");

scanf("%d",&year);



if(year%4==0)

{



printf("%d is a leap year",year);

}



else

{

printf("%d is a not leap year",year);



}















}

No comments:

Post a Comment

Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC

Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...