Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

512 B

#THIS IS A H1

This page is merely for testing -- go away

include <stdio.h>
void main(int argc, char * argv[])
{
	int vals[1000];

	//value will overflow a 32 bit int!!!
	long int max = 0;
	
	char * data = argv[1];
	for(int i = 0; i < 1000; i++)
	{
		vals[i] = (int)data[i] - 48;
	}

	for(int i = 0; i < 1000 - 13; i ++)
	{
		long int tempMax = 1;
		for(int t = i; t < i + 13; t++)
		{
			tempMax *= vals[t];
		}
		if(tempMax > max)
		{
			max = tempMax;
		}
	}

	printf("the max number is %ld", max);
}