Print even number 1 to 100 Using for loop

Print even number 1 to 100  Using for loop

LOGIC:

for( i=1;i < =100;i++)
{
if(i%2==0 )
{
Printf("even no are %d",i);
}

}

1 comment:

  1. https://www.crackyourinterview.com/Ads-Code-to-print-Even-number-in-c-Language.aspx

    ReplyDelete