Demo entry 4428746

as

   

Submitted by anonymous on Apr 10, 2016 at 21:52
Language: C++. Code size: 302 Bytes.

#include <iostream>
using namespace std;
int main()
{
    int N;
    cin >> N;
    
    int vet[N];
    for(int i = 0; i < N; i++)
        cin >> vet[i];
    
    for(int i = 0; i < N; i++)
        cout << vet[i] << "x" << vet[i] << " = " << vet[i] * vet[i] << endl;
    
    return 0;
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).