#include <stdio.h> int main(void) { int i=2; while (i<=30) { printf("%d\n",i); i = i + 2; } return 0;}
Standard input is empty
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!