#include <iostream> using namespace std; int main() { int s,n,mas[100]; cout << "Enter number = ";cin >> n; for(int i=0;i<n;i++) { cout << "Enter " << i+1 << " = "; cin >> mas[i]; } cout << "Suma = ";cin >> s; cout << "Bankomat = "; for(int i=0;i<n;i++) { cout << mas[i] << " "; } cout << "\n"; system("pause"); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter