Write a program to print a two-dimensional Square Root Table as shown below, to provide the square root of any number from 0 to 9.9.
#include <stdio.h>
#include <math.h>
#define ROW 9
{
float row,column,i,j;
float product[ROW][COLUMN];
clrscr();
printf(" SQUARE ROOT OF ROW AND COLUMN\n\n");
for(j=0;j<=COLUMN;j=j+0.1)
printf("%2.1f ",j);
printf("\n");
printf("----------------------------------------------------------\n");
#include <stdio.h>
#include <math.h>
#define ROW 9
#define COLUMN 1
void main(){
float row,column,i,j;
float product[ROW][COLUMN];
clrscr();
printf(" SQUARE ROOT OF ROW AND COLUMN\n\n");
for(j=0;j<=COLUMN;j=j+0.1)
printf("%2.1f ",j);
printf("\n");
printf("----------------------------------------------------------\n");
for(i=0;i <Row;i++)
No comments:
Post a Comment