Question: 3 . 1 2 What does the following program print? 1 #include 2 3 int main ( void ) { 4 int x = 1

3.12 What does the following program print?
1#include
2
3int main(void){
4int x =1;
5int total =0;
6
7while (x <=10){
8int y = x * x;
9printf("%d
", y);
10total += y;
11++x;
12}// end while
13
14printf("Total is %d
", total);
15}// end main

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!