answersLogoWhite

0

#include<iostream.h>

#include<conio.h>

void main()

{

for(int i=1;i<=10;i++)

{

cout<<i*i;

}

getch();

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you write a program to find out the square and cube of first ten natural numbers in gw basic?

First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.


How do you write a program to find the area of a square in qbasic?

To write a program in QBASIC to find the area of a square, you first need to prompt the user to enter the length of one side of the square. You can then calculate the area by squaring the length (multiplying it by itself) and finally display the result. Here's a simple example: INPUT &quot;Enter the length of the side of the square: &quot;, side area = side * side PRINT &quot;The area of the square is: &quot;; area


How do you write socket program in c?

For first find an example program.


Write a program to calculate first?

int first= 1;


Can the sum of the first n consecutive positive integers be equal to the square of a prime number?

No, it is not possible.


How do you write a program to print the first n multiples of 7?

Algorithm: multiples input: two positive integers, m and n output: print first n multiples of m i = m; for j = 1 to n print i i = i + m; next j


How do you write a program in java to print sum of first ten integers?

public class sum { public static void main(String args[]){ int sum=0; for(int i=1;i&lt;=10;i++){ sum=sum+i; } System.out.println(sum); } }


How many nines are in the first million integers?

Very interesting !If you write the counting numbers from 1 to 1,000,000,you'll write the digit '9' exactly 600,000times.


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


How do you write a c program that prints a box an oval an arrow and a diamond?

You first learn how to program in C.


How can program for c language?

first think of the logic and then write the statements


Write a C plus plus program to find out the square of first 10 numbers?

#include&lt;iostream&gt; int main() { int i=0; while(i++&lt;10) std::cout&lt;&lt;i*i&lt;&lt;std::endl; }