Program to check if a Number is a Perfect Square or not.
Don't have a laptop to start learning C++ Computer programming language ? Do not worry yourself about that because you can actually start learning C++ Computer programming language with your android phone.
The code below is useful for checking if a number is a perfect square number or not. And I wrote and ran it with my android phone.
Are you ready to start learning C++ Computer programming language with your android phone ? If your answer is yes, then, go to Play Store now and download the Cxxdroid app to start writing C++ codes with your android phone.
Happy learning
#include<iostream>
using namespace std;
int main () {
double a ;
double b = 0;
cout << " Enter Your Number " << endl;
cin >> a;
while ((b * b) <= a ){ // To check if the loop is not higher than the input
if((b * b) == a){ // To check if the input is a perfect square number.
cout<< a << " is a perfect square number " << endl;
break;
}
b++;
}
if( (b*b)!= a) {
cout << a << " is not a perfect square number " << endl;
}
return 0;
}
#c++ #LearnAndGrow #learn #learning #programming #programmer #coding #learncoding #AMSkillsHub #phone #androidphone #trending #trendingnow #trend #cxxdroid #computer #computerscience #computerprogramming #computerengineering #computers #MechatronicsEngineering #arduino #keepgoing #keeeplearningkeepgrowing
Follow us for more tech insights and updates on embedded systems, electronics, and programming. Together, we'll unravel the fascinating world of technology.
Feel free to become a part of our WhatsApp community, where we engage in discussions about electronics, embedded system development, and the C++ programming language. Just click on the link below to join us: 👇 👇👇
Please remember to leave your thoughts in the comment section and share this informative and educational content with individuals who are passionate about electronics, embedded system development, and computer programming.



Comments
Post a Comment