#include<iostream>
#include<cmath>
using namespace std;
main()
{
double a,d;
cout<<"Enter the side of the Square\n";
cin>>a;
d=sqrt(2)*a;
cout<<"Side of the Square= "<<a<<"\n";
cout<<"Diagonal of the Square= "<<d<<"\n";
}
#include<iostream>
#include<cmath>
using namespace std;
main()
{
double a,d;
cout<<"Enter the side of the Square\n";
cin>>a;
d=sqrt(2)*a;
cout<<"Side of the Square= "<<a<<"\n";
cout<<"Diagonal of the Square= "<<d<<"\n";
}
//Java Program to count the total number of characters in a string import java.util.*; public class CountChars { public static void mai...
No comments:
Post a Comment