Playground
#include <iostream> using namespace std; int main() { double a=0.1, s=0; while (a != 1.0) { s += a; a += 0.1; } cout << s << endl; //nikogash nema da se izvrshi return 0; }
Input data
Program output
no input
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!