int i = 1;
int sum = 0;
while(i<=100)
{
if(i%3 != 0)
{
sum = sum + i;
}
i++;
}
#include
void main()
{
int i=1,sum=0;
while(i<=100)
{
if(i%3) sum+=i;
}
printf("%d\n",sum);
}
#include
void main()
{int i = 1;
int sum = 0;
while(i<=100)
{
if(i%3 != 0)
{
sum = sum + i;
}
i++;
}
}