{"action":"opened","issue":{"url":"https://api.github.com/repos/Runlb3rni/Stuff/issues/1","labels_url":"https://api.github.com/repos/Runlb3rni/Stuff/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Runlb3rni/Stuff/issues/1/comments","events_url":"https://api.github.com/repos/Runlb3rni/Stuff/issues/1/events","html_url":"https://github.com/Runlb3rni/Stuff/issues/1","id":57056626,"number":1,"title":"Moyenne.c","user":{"login":"Runlb3rni","id":10926041,"avatar_url":"https://avatars.githubusercontent.com/u/10926041?v=3","gravatar_id":"","url":"https://api.github.com/users/Runlb3rni","html_url":"https://github.com/Runlb3rni","followers_url":"https://api.github.com/users/Runlb3rni/followers","following_url":"https://api.github.com/users/Runlb3rni/following{/other_user}","gists_url":"https://api.github.com/users/Runlb3rni/gists{/gist_id}","starred_url":"https://api.github.com/users/Runlb3rni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Runlb3rni/subscriptions","organizations_url":"https://api.github.com/users/Runlb3rni/orgs","repos_url":"https://api.github.com/users/Runlb3rni/repos","events_url":"https://api.github.com/users/Runlb3rni/events{/privacy}","received_events_url":"https://api.github.com/users/Runlb3rni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-09T16:48:47Z","updated_at":"2015-02-09T16:48:47Z","closed_at":null,"body":"#include <stdio.h>\r\n#include <stdlib.h>\r\n#include <math.h>\r\n\r\nint sommeTableau (int tableau[], int tailleTableau);\r\n\r\nint main(int argc, char *argv[])\r\n{\r\nint tableau[4] = {10, 15, 3, 12};\r\nint taille = 4;\r\n\r\n//tableau tel que défini au dessus, taille tableau=4\r\nprintf(\"40 = %d ?\", sommeTableau(tableau, taille));\r\nreturn 0;\r\n\r\n}\r\n\r\n\r\nint sommeTableau (int tableau[], int tailleTableau)\r\n{\r\nint somme = 0;\r\nint i;\r\n\r\nfor (i=0; i < tailleTableau ; i++)\r\n{\r\n         somme = somme + tableau[i];\r\n\r\n}\r\n\r\nsomme = somme / tailleTableau;\r\n    return somme;\r\n}\r\n\r\n\r\n\r\n"}}