Demo entry 2702593

description

   

Submitted by ggo on Sep 18, 2015 at 10:18
Language: C. Code size: 253 Bytes.

#include <stdio.h>
#pragma warning (disable : 4996)

int main() {
	int arr[6] = { 0, };
	int i;
	
	for (i = 0; i < 5; i++) {
		scanf("%d", &arr[i]);
		arr[5] += arr[i] * arr[i];
	}

	arr[5] %= 10;

	printf("%d", arr[5]);

	return 0;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).