answersLogoWhite

0

int i;

for (i=1; i<=10; i++) printf ("%d %d\n", i, i*i);

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you write c program to accept a string from the console and count number of vowels constants digits tabs and blank spaces in a string?

Read the characters one at a time, and write an "if" for each of the cases. In each case, if the condition is fulfilled, increment the corresponding counter variable.


How do you Write a program that determines the number of occurrences of each digit in a given integer n?

there could be a part in it like this: int num, digit; int count [10]; do { digit = num%10; num != 10; ++count[digit]; } while (num);


How do you count the squares in a square?

Rather than count each square individually, count the squares (8) along the top of a chess board, and count the squares (8) down the side. 8 x 8 = 64 squares in total. (You could, if you wish, also include the whole board as a square = 65.)


How do you write a c program to prints name?

Write a c program that reads your first name and surname when you enter them. Each part of your name should not be more than 12 characters. Finally, have the program display your full name.


Which computer program can tell you how many of each characters are in a document aka How many As Bs Cs Etc?

A word processing application, such as Microsoft Word, can be used to count characters. For example, you can do an Advanced Search individually for each character in the document: A, B, C, etc. and then write down the number of how many of each are found in the search results.


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.


Is it more efficient to store the data in a matrix then write it to the file at the end of the program or to write each element to the file as the program runs?

It shouldn't make significant difference, only if the matrix is huge -- in that case you shouldn't store it in memory.


How many parallel lines in square?

A square has four sides, and each pair of opposite sides is parallel to each other. Therefore, there are two pairs of parallel lines in a square. In total, this means there are two distinct sets of parallel lines, resulting in four parallel lines if you count both sides of each pair.


What is correct - each program has or each program have?

"Each" is a singular word, so "Each program has . . ." is correct.


Write as many special names as possible for each quadrilateral?

trapezoid,rectangle,parallelogram,square,kite


When counting words for a novel is does A or the count as a word or is it based on five characters one word idea?

Usually you just count anything three or more letters - or let your word processing program count it for you!


How do you EMAIL MY pictures from window 7?

Write your email, then attach each picture you want to send - the email program will do the rest !