Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Iterative statement



" ; " after loop



Comment



Working with switch case



Specifer




Given number is square able or not



// AHF C PROGRAM SOLVING

//solving here basic type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int x,b; float a; pf("Enter any number: "); scanf("%d",&x); a=sqrt(x); b=sqrt(x); if(a==b) pf("\n%d is square type integer number.",x); else pf("\n%d is not square type integer number.",x); return 0; }
OUTPUT:


© 2018 - All rights reserved