+ 1

what is the output of this code written in c++ ? clearly response, please

int main() { int num = 1; while (num * num < 30) { cout << num << " "; num = num + 1; } cout << endl;

11th Aug 2017, 5:34 PM
Muhammad Sayed Ahmed
Muhammad Sayed Ahmed - avatar
1 Answer
+ 1
1 2 3 4 5. Print all numbers starting with 1 that have square less than 30.
11th Aug 2017, 6:38 PM
Roman
Roman - avatar