i was told tht from this:
int main ()
{
int i,j,vsota;
for (i=1; j=10; i<=j; i++)
{
vsota=vsota+i+j;
j--;
}
system ("pause");
return 0;
}
i must make it work with while ;
but the oruginal doesnt work allso
what should i doo??;
please any help;?
#include <iostream>
using namespace std;
int main ()
{
int i = 1,vsota,j;
while (j=10;i<=j)
{
vsota = vsota + i + j;
j--;
i++;
}
system("pause);
return 0;