برنامه ی زیر چه چیزی را چاپ می کند؟
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int y, x = 1, total = 0;
while(x <= 10) {
y = x * x;
cout << y << endl;
total += y;
++x;
}
cout << "Total is " << total << endl;
getch();
return 0;
----------------------------------------------------------------------------------------------------------------------------------
1
4
9
16
25
36
49
64
81
100
Total is 385
}