Skip to content

Commit

Permalink
resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Patick-gu committed Oct 28, 2023
1 parent b2351e9 commit 168cc6c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions vetor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#include <iostream>

using namespace std;

int main()
{
float vetorA[5];
float vetorB[5];
float vetorC[5];
int i;

cout<<"digite valor de A"<<endl;
i=0;
while(i<5){
cin>>vetorA[i];
i++;
}
cout<<"digite valor de B"<<endl;
i=0;
while(i<5){
cin>>vetorB[i];
i++;
}
i=0;
while(i<5){
vetorC[i]=vetorA[i]+vetorB[i];
i++;
}

cout<<vetorC[i]<<endl;

}

0 comments on commit 168cc6c

Please sign in to comment.