[ create a new paste ] login | about

Link: http://codepad.org/9rK0VrvL    [ raw code | output | fork ]

kamarakay2000 - C++, pasted on Jun 4:
#include<iostream>
int main()
{
int x (2);
int y (0);
if(x>3)
{
  y ++;
}
else
{
   y--;
}
for(int i(0); i<x; i++);
{
std::cout<<std::endl;
}
while(x > 4)
{
    int j(2);

    x + -j;
}
y =x++;
y =++x;
switch (x)
{
case 4:
std::cout<<"x is four"<<std::endl;
break;
case 5:
std::cout<<"x is five"<<std::endl;
break;
case 6:
std::cout<<"x is six"<<std::endl;
break;
default:
std::cout<<"x is less than four or more than six"<<std::endl;
break;
x =(y>8)? 5:10; 
}
return 0;
}


Output:
1
2

x is four


Create a new paste based on this one


Comments: