- 1

Find the largest value among the 1to10

C++

3rd Jun 2018, 6:53 AM
Mahendra Kumar
Mahendra Kumar - avatar
2 Réponses
+ 2
The largest value among {1 ... 10} is 10. cout << 10;
3rd Jun 2018, 9:54 AM
michal
0
What do you mean by 1 to 10 ? Numbers ? if yes #include <iostream> using namespace std; int main() { int i=1; while (i<10) { i++; } cout << i ; return 0; }
3rd Jun 2018, 7:28 AM
Aveek Bhattacharyya
Aveek Bhattacharyya - avatar