int i;
for (i=1; i<=10; i++) printf ("%d %d\n", i, i*i);
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.
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);
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.)
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.
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.
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.
It shouldn't make significant difference, only if the matrix is huge -- in that case you shouldn't store it in memory.
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.
"Each" is a singular word, so "Each program has . . ." is correct.
trapezoid,rectangle,parallelogram,square,kite
Usually you just count anything three or more letters - or let your word processing program count it for you!
Write your email, then attach each picture you want to send - the email program will do the rest !