Answer:
Just Click Log out!
Explanation:
Its Simple, really! I promise its real
Answer:
c. double triple(float n) { return (3 * n); }
Explanation:
In option a print is used to print integer.While printf is used in C to print something.
In option b there is no * operator between s s s it should be s*s*s.So it will give error.
In option d there is also no multiply operator * in between 3.14 2 r it should be 3.14*2*r.
So we can say that option c is error free.
Run,lazy,turtles,slow,wandering, jump,45,weird,pigs, cows, cousins, pale,rude,candles
There are many answers for this but this is what first came to my mind
Hope this helps
Answer:
Written using C++
/*Enter Your Details Here*/
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
//1
float side;
cout<<"Enter the side of a square: ";
//2
cin>>side;
//3
float perimeter = 4 * side;
cout<<"The perimeter is "<<perimeter<<endl;
//4
float area = side *side;
cout<<"The area is "<<area<<endl;
//5
float diagonal = sqrt(2 * side * side);
cout<<"The length of the diagonal is "<<diagonal;
return 0;
}
Explanation:
<em>I've added the full source code as an attachment where I used more comments to </em><em>explain </em><em>difficult line</em>