###### Asked in Jobs & Education, C Programming

Jobs & Education

C Programming

# Write a c program to print squares of all numbers from 1 to 100 inclusive?

## Answer

###### Wiki User

###### 02/09/2009

int i;

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

## Related Questions

###### Asked in C Programming, All India Council For Technical Education AICTE

### Write a program to find the sum of squares of the given number?

Algorithm and Flowcharts for a program to compute the sum of the
squares of the numbers for a given range used for loop
...

Read More

###### Asked in C Programming

### Write a C Program to print sum of squares of odd numbers?

#include<stdio.h>

Read More

###### Asked in Math and Arithmetic

### Lara chooses a square number she rounds it to the nearest hundred her answer is 200 write all the possible square numbers Lara could have chosen?

Squares of numbers from 13 to 15 inclusive

Read More

###### Asked in C Programming

### How do you write a C program to find all the prime numbers between 1 and 1000 inclusive?

Sieve of eratothanes is a popular one.

Read More

###### Asked in C Programming

### Write programme for sum of number given?

write a program to find the sum of squares up to 50

Read More

###### Asked in Computer Programming

### Write a program in Lex to eliminate white space and collect numbers as a token?

write a lex program to delete space from the program

Read More

###### Asked in Math and Arithmetic, Algebra, Geometry

### Can you write every integer as the sum of two nonzero perfect squares?

No.
First of all, you can't write negative numbers as sums of perfect
squares at all - since all perfect squares are positive.
Second, for natural numbers (1, 2, 3...) you may need up to 4
perfect squares:
http://en.wikipedia.org/wiki/Lagrange's_four-square_theorem
No.
First of all, you can't write negative numbers as sums of perfect
squares at all - since all perfect squares are positive.
Second, for natural numbers (1, 2, 3...) you may need up to 4
perfect squares:
http://en.wikipedia.org/wiki/Lagrange's_four-square_theorem
No.
First of all, you can't write negative numbers as...

Read More

###### Asked in Math and Arithmetic

### How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers

Read More

###### Asked in Math and Arithmetic

### Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given
numbers? write a shell program for finding out gcd of three given
numbers? write a shell program for finding out gcd of three given
numbers? check bellow link
http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html
...

Read More

###### Asked in Java Programming

### Write algorithm compute sum of square of N numbers?

1. Design
an algorithm to compute sum of the squares of n numbers?

Read More

###### Asked in Computer Programming, Math and Arithmetic, C Programming

### Could you Write a program for 8086 microprocessor that displays on the monitor the average of 2 numbers from an array?

How to write a program for mouse in microprocessor?

Read More

###### Asked in C++ Programming

### Write a C plus plus program to calculate the sum of squares of numbers from 1 to N?

Use the following function in your program to calculate the sum
of squares from 1 to max:
unsigned int sum_squares( unsigned int max )
{
unsigned int total=0, num=0;
while(num++<max)
total+=(num*num);
return(total);
}
...

Read More

###### Asked in Math and Arithmetic, C Programming, Algebra, How To

### How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers

Read More

###### Asked in C Programming

### Write a program to genarate Fibonacci series upto sum numbers?

Where are the numbers that you want to sum.

Read More

###### Asked in C Programming, Computer Science

### Write a C program to calculate the sum of squares of numbers from 1 to N?

#include <iostream>
using namespace std;
int main()
{
int i,sum; // variables
sum = 0; // initialize sum
/* recursive addition of squares */
for (i = 1; i <= 30; i++)
sum = sum + (i * i);
cout << sum <<" is the sum of the first 30
squares."
<< endl;
return 0;
}
...

Read More

###### Asked in Java Programming, C Programming, QBasic

### How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using
class and array of
object.
...

Read More

###### Asked in PHP Programming, JavaScript

### 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.
...

Read More

###### Asked in Prime Numbers

### How do you write a VBnet program to find the prime numbers between 100 to 200?

VBnet program to find the prime numbers between 100 to 200?

Read More

###### Asked in Math and Arithmetic, C Programming

### How do you write a c program to find maximum and minimum of a set of numbers?

How do you write a c program to find maximum and minimum number in
a given array?
...

Read More

###### Asked in Computer Programming, Prime Numbers

### Write a c program to find out the prime numbers between 1 to 500?

write a program to find prime number between 1 to500

Read More

###### Asked in Math and Arithmetic, C Programming, Numbers

### How do you write c program to find sum of two numbers?

You add numbers as follows:
sum = a + b;

Read More

###### Asked in C Programming

### Algorithm and flow chart of the program for ascending and descending order of numbers?

A flow chart can be used to write a program that can sort
numbers. The program should be able to sort numbers by either
ascending or descending order as needed.
...

Read More

###### Asked in C Programming

### Write a c program to find GCD of n numbers using recursion?

Is this a question? If it is, the answer is: 'yes, do
write'.

Read More

###### Asked in C++ Programming

### A program c plus plus on automorphic numbers or not?

how to write a program that counts automorphic number from 1 to
999

Read More

###### Asked in C Programming

### To write a program that calculates and prints the sum of all even numbers between 10 and 40 I have tried but i will waste characters showing it.?

int sum = 0;
for(int i = 10; i <= 40; i += 2) {
sum += i;
}
printf("Sum of all even numbers between 10 and 40(inclusive) is
%d\n", sum);
...

Read More