Posts by João Cunha • 93 points
3 posts
-
0
votes1
answer98
viewsA: Doubt with Floyd’s Triangle
<input id="input" type="number" /> <button onclick="calculate()">Calculate</button><br/> <span id="output"></span> <script> function calculate() { var input…
javascriptanswered João Cunha 93 -
2
votes1
answer113
viewsA: Select from all users with only one result from each user
Very simple, just group by the user: SELECT * FROM pw_chat GROUP BY usuario ORDER BY data DESC Sqlfiddle - Online example…
-
1
votes2
answers266
viewsA: How to add functions in C programs?
I think your goal is this: int main(){ int n; printf("Digite um numero inteiro positivo: "); scanf("%d",&n); // AQUI SE CHAMA A FUNCAO E MANDAM OS PARAMETROS NECESSARIOS NESTE CASO É //SÓ UMA…