#include <stdio.h> int main(void) { // your code goes here int a=1; int sum=0; while(a<=100){ if ((a%3!=0)&&(a%10>=6)){ sum=sum+a; } a=a+1; }; printf("%d",sum); return 0; return 0; }
Standard input is empty
1365
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!