Tuesday, 4 October 2011

Program to find numbers divisible by 4 between 1 to 100 and their sum...


#include<stdio.h>
#include<conio.h>
void main()
{
int i, sum = 0 ;
clrscr();
for ( i =0 ; i <= 100 ; i++)
{
if(i%4 == 0)
{
printf("\n %d",i);
sum+=i;
}
}
printf("\n Sum = %d",sum);
getch();
}

1 comment:

  1. The Royal Mint Slot Machines - Airjordan18Retro
    ‎The Royal Mint · ‎The Royal Mint · ‎Slot 승인전화없는 토토사이트 비코리아 Machines. The Royal Mint is a 오락실 슬롯 머신 게임 great addition to your air jordan 18 retro racer blue good site online 저녁밥 추천 casino. great air jordan 18 retro men blue · ‎Royal Mint Casino · ‎Play

    ReplyDelete