Luffy Posted August 26, 2017 at 03:31 AM Share Posted August 26, 2017 at 03:31 AM (edited) Como diz o titulo esto iniciando na área de programação C deixo abaixo 3 projetos que crie lembrando que só um novato espero opinião e dicas dos mas experiente na área #include <stdio.h> #include <stdlib.h> int quadrado(int x) { printf("O quadrado %c: %d\n",130,(x*x)); return 0; } int main(int argc, char *argv[]) { int num; printf("Entre com um n%cmero: \n",163); scanf("%d",&num); quadrado(num); system("PAUSE"); return 0; } #include <stdio.h> #include <stdlib.h> int mult(int x, int y, int z) { printf("A Multiplica%c%co %c: %d\n",135,132,130,(x*y*z)); return 0; } int main(int argc, char *argv[]) { int num, num2, num3; printf("Entre com tr%cs n%cmero: \n",136,163); scanf("%d %d %d",&num,&num2,&num3); mult(num,num2,num3); system("PAUSE"); return 0; } #include <stdio.h> #include <stdlib.h> int entrada(int x) { return x*x; } int main(int argc, char *argv[]) { int num; int result; printf("Entre com um n%cmero: \n",163); scanf("%d",&num); result = entrada(num); printf("O sua multiplica%c%co %c: %d\n",135,132,130,result); system("PAUSE"); return 0; } Se tiver na área errada peço para que mova o tópico para área certa Edited August 26, 2017 at 03:32 AM by Luffy Link to comment Share on other sites More sharing options...
juniorsilva Posted August 26, 2017 at 03:49 AM Share Posted August 26, 2017 at 03:49 AM Legal Link to comment Share on other sites More sharing options...
Luffy Posted August 26, 2017 at 03:55 AM Author Share Posted August 26, 2017 at 03:55 AM 5 minutos atrás, juniorsilva disse: Legal https://tlthings.net/uploads/emoticons/Untitled-11.png Obrigado pelo comentário Link to comment Share on other sites More sharing options...
juniorsilva Posted August 26, 2017 at 04:21 AM Share Posted August 26, 2017 at 04:21 AM 18 minutos atrás, Luffy disse: Obrigado pelo comentário De nada e boa sorte pra ti. Link to comment Share on other sites More sharing options...
Luffy Posted August 26, 2017 at 04:47 AM Author Share Posted August 26, 2017 at 04:47 AM 24 minutos atrás, juniorsilva disse: De nada e boa sorte pra ti. Obrigado, espero em breve quando tiver mas conhecimento poder ajudar os outros membros com programas ou ate mesmo tutorias assim como fui muito ajudado aki Link to comment Share on other sites More sharing options...
Karbust Posted September 7, 2017 at 11:44 AM Share Posted September 7, 2017 at 11:44 AM Para o quadrado já existe uma função, a função pow, está no include math.h... pow(numero, numero a elevar) Exemplo: pow(3,2) = 3 ^ 2 = 9 Link to comment Share on other sites More sharing options...
Luffy Posted September 8, 2017 at 02:57 AM Author Share Posted September 8, 2017 at 02:57 AM 15 horas atrás, charparodar disse: Para o quadrado já existe uma função, a função pow, está no include math.h... pow(numero, numero a elevar) Exemplo: pow(3,2) = 3 ^ 2 = 9 Obrigado pela dica, como ainda sou novato to fazendo como no vídeo ate pegar bem os comandos Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now