j

Sunday, 8 November 2015

Write a program that take two number from user and check second number square of first number or not

Program Solution

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
printf("Enter two numbers ::");
printf("%d%d",&a,&b);
if(a*a==b)
printf("Second number is the square of first.");
else
printf("Its is not a square of first.");
getch();
}

OUTPUT 



Subscribe to this Blog via Email :