SHARE
TWEET

Untitled

a guest Jan 22nd, 2020 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. esercizio
  2. caricare da tastiera un vettore di 10 numeri e stamparlo a video
  3. #include <iostream>
  4. #include <math.h>
  5. using namespace std;
  6. int
  7. main (){
  8.      int s;         // dimensione del vettore
  9.   cout << "inserisci la dimensione del vettore" << endl;
  10.   cin >> s;
  11.   int V1[s];
  12.   for (int i = 0; i <s; i++)
  13.     {
  14.       cout << "inserisci V1 [" << i << " ]=" << endl;
  15.       cin >> V1[i];
  16.  
  17.     }//chiuso il for
  18.  cout<<V1[s]<<endl;
  19. }//chiuso il main
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top