#include<stdio.h>
int main()
{
	int num=1;	//initializing the variable
	do	//do-while loop 
	{
		printf("%d\n",num*num/2);
		num=num+5;		//incrementing operation
	}while(num<=30);
	return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: