Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main () {
- int vetor[100];
- float a=0;
- while (a<101) {
- a++;
- vetor[100]=(1*a*5);
- cout << vetor[100] <<"\n";
- }
- return 0;
- }
- /* CASO QUEIRA COMEÇANDO DO 1:
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main () {
- int vetor[100];
- int a=0;
- switch (a) {
- case 0:
- vetor[100]=1;
- cout << vetor[100] << "\n";
- a++;
- while (a<101)
- {
- vetor[100]=(1*a*5);
- cout << vetor[100]<<"\n";
- a++;}
- break;
- case 101:
- break;
- }
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment