Quipex

Laba_4.3_II

Oct 6th, 2015
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. // Laba_4.3_II_var.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. using namespace std;
  7.  
  8.  
  9. int main()
  10. {
  11.     int k,i;
  12.     double mas[100000];
  13.     cout<<"Vvedite kol-vo simvolov: \n";
  14.     cin>>k;
  15.     for(i=k-1;i>=0;i--)
  16.     {
  17.         cin>>mas[i];
  18.     }
  19.     for(i=0;i<k;i++)
  20.     {
  21.         cout<<mas[i]<<" ";
  22.     }
  23.     cout<<endl;
  24.     system("pause");
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment