Wednesday 21 October 2015

If,Else Second Number Is Square Of First :C Program


#include<stdio.h>
#include<conio.h>
void main()
{
    int a,b;
    printf("Enter Value Of a And b");
    scanf("%d%d",&a,&b);
    if(a*a==b)
    {
        printf("2ND Number Is Square of first");
    }
    else
    {
        printf("Not square");
    }
    getch();

}

0 comments:

Post a Comment