You are on page 1of 1

#include<iostream>

using namespace std;


int main()
{
int i,a,x=0,y=0,z=0,S;
for(i=1;i<10;i++)
{
for(a=0;a<10;a++)
{
x=x+i;
y=y+a;
z=z+i;
}
}
S=x+10*y+100*z;
cout<<"La suma es: "<<S<<endl;

system("pause");
return 0;
}

You might also like