Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.
Login
Login
OnlineGDB Q&A
Questions
Unanswered
Tags
Ask a Question
Ask a Question
me ajude sobre uma atividade
+4
votes
asked
Sep 7, 2021
by
ENSINAMENTOS ESPIRITUAL
(
170
points)
O vetor deve ter tamanho 3, e os valores deverão ser inseridos pelo usuário. Outro ponto pedido no desafio é que você imprima os valores que foram adicionados. Para este problema, utilize a Linguagem C.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
2 Answers
+1
vote
answered
Sep 7, 2021
by
Peter Minarik
(
84,720
points)
Show us what you've done, share your code, and we'll be happy to review your code and give you guidance if something does not work.
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
0
votes
answered
Sep 12, 2021
by
Han-ma-bookie
(
360
points)
#include <stdio.h>
int main(){
int vetor[3];
for (int i=0;i<3;i++){
printf("[%d]:: ",i+1); scanf("%d",&vetor[i]);
}
for (int a=0;a<3;a++){
printf("%d\t",vetor[a]);
}
return 0;
}
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...