- 1
Find the largest value among the 1to10
C++
2 Antworten
+ 2
The largest value among {1 ... 10} is 10.
cout << 10;
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;
}