Preview:
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
    double chiffre1, racine, carre;
    cout << "Entrez le nombre: ";
    cin >> chiffre1;
    racine = sqrt(chiffre1);
    carre = chiffre1 * chiffre1;
    cout << " la racine carré de " << chiffre1 << "est " << racine << endl;
    cout << "le carré de " << chiffre1 << "est " << carre << endl;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter