Mega Code Archive

 
Categories / C++ Tutorial / Operators Statements
 

Break from while

#include<iostream.h> int main() {   int x,y,s;   cin >> x >> y;   s=0;   while(1)   {     if(s==0)break;     s +=x;   }   cout<<s<<endl; } 1 2