answersLogoWhite

0

Answer:CODE:

#include

main(){

int i = 0;

int counter = 1;

while(i <= 100){

i = counter*counter;

counter++;

printf("The value of i is:%d\n", i);

}

exit(0);

}

END CODE

I think this should work and display the results in the terminal. I haven't tried it though, so it might not work.

Answer:#include

int main (void) { puts ("1 4 9 16..100"); retun 0; }

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Write a program in shell script to display odd number from 0 to 100?

seq 1 2 99


How can I write a program to display prime numbers from 1 to 100?

Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.


How many sq m in 230 centimeters by 70 centimeters?

we can find the product=230 X70 =16100 cm sq. 1 sq.m =10000 sq.cm. 16100 sq.cm=1.61 m&sup2; .


Write a java program to display the number is prime or not?

Simply use a for loop (i) that runs from 2 to N-1. Checking if N % i 0 then its a prime number.


Write a C program to print the following series 112 122 . 1n2?

write a program to print the series 1/12+1/22+.........+1/n2 ?


write a program that will display one if you enter any number without it will display zero in c?

You can use the following C program to display &quot;1&quot; if a user enters any non-zero number, and &quot;0&quot; if the entered number is zero: #include &lt;stdio.h&gt; int main() { int num; printf(&quot;Enter a number: &quot;); scanf(&quot;%d&quot;, &amp;num); if (num != 0) { printf(&quot;1\n&quot;); } else { printf(&quot;0\n&quot;); } return 0; } This program reads an integer from the user and checks if it is non-zero or zero, then prints the corresponding output.


What BASIC program can compute and display all prime numbers from 1 to 40?

PRINT 2,3,5,7,11,13,17,19,23,29,31,37


Write a program to display table of five in unix?

sum=0 i=1 echo "Enter any number " read num while [ $i -le 10 ] do sum=`expr $num \* $i` i=`expr $i + 1` echo "Table of a number is " $sum done


Write a program to calculate first?

int first= 1;


Write a program to display 1 to n numbers using loop in oracle?

You can use a PL/SQL block to display numbers from 1 to n in Oracle. Here's an example program: DECLARE n NUMBER := 10; -- Change this value to your desired n BEGIN FOR i IN 1..n LOOP DBMS_OUTPUT.PUT_LINE(i); END LOOP; END; / This code declares a variable n, then uses a FOR loop to iterate from 1 to n, printing each number using DBMS_OUTPUT.PUT_LINE. Make sure to enable output in your SQL environment to see the results.


Can you give me a program that will compute number 1 to 5?

nr\m;laeoh9y0m g.qthnedxc In fortran: do i=1,5 write(6,*)i enddo stop end This program will write the numbers 1 to 5 on the screen.


Program that display the first 5 odd numbers?

printf("1 3 5 7 9\n");