#include <iostream>
#include <cmath>
using namespace std;
int main () {
int v;
cout << "Enter positive number of rows" << endl;
cin >> v;
for(int c=1; c<=v; c++){
for(int r=1; r>=v; r--){
cout << sqrt(r);
cout << endl;
}
}
return 0;
}
im trying to get the program to print this as an example if the user enters 5 (the rounding of the decimal is optional).
1 1.41 1.73 2 2.24
1 1.41 1.73 2
1 1.41 1.73
1 1.41
1
i dont understand why its not reading my for loop for rows its only doing columns can anyone please point me in the right direction thanks.