Write A C Program To Generate A Square Table.
Menu
Turn Mobile View Off
You are here:  
by Dinesh Thakur Category: Object-oriented programming (OOP)

 

#include <iostream.h>
#include<conio.h>
#define SQR(x) ((x) * (x))
void main()
{
             int c = 0;
             clrscr();
             while (c < 50)
             cout<<c<<" square "<<SQR(++c)<<endl;
              getch();
}

Generate A Square Table

Dinesh Thakur is a Technology Columinist and founder of Computer Notes and Technology Motivation. Turn Mobile View Off