Welcome

Hi! This blog is for beginners of c++ and java .You can check and pick codes for your programming assignments. This will also help you to understand the concepts of these programming languages. Its all about programming.

Loops Practise(Find square)

Wednesday, May 18, 2011

#include <iostream.h>
#include <conio.h>
int main ()
{
    clrscr ();
    const int finish=10;
    int start;
    cout <<"Enter The Starting Number: ";
    cin >> start;
    for (int number=start;number<=finish;number++)
    {
        cout << number <<" squre is : "<< number*number <<endl;
    }
    getch();
    return 0;
}