๐Ÿ“ฆ Lythos0 / Personal-Programming-Projects

๐Ÿ“„ ps1-3.cpp ยท 13 lines
1
2
3
4
5
6
7
8
9
10
11
12
13using namespace std;
#include <iostream>
#include <cstdlib>
#include <ctime>

int main() {
int x = rand()% 100 + 1;
int y = rand() % 100 + 1;
int square_sum = (x * x) + (y * y);

cout << "The sum of the squares is " << square_sum;

};