Ok I have made three programs tell me if I am wrong with any (:
Code:
int main()
{
int x,y,z;
clrscr();
cout<<"\n Enter Value of x : ";
cin>>x;
cout<<"\n Enter Value of y : ";
cin>>y;
z=x+y;
cout<<"\n Sum : "<<z;
x=x+1;
cout<<"\n Increment : "<<x;
getch();
return 0;
}
Code:
int main()
{
int vcount;
cout<<"\n Enter Value : ";
cin>>cvount;
if(vcount<10)
cout<<"\n count is greater then 10 ";
else
cout<<"\n End ";
getch();
}
Code:
int main()
{
int x,sub;
clrscr();
cout<<"\n Enter Value of x : ";
cin>>x;
x=x-1;
cout<<"\n decrement : "<<x;
{
sub=x-(x-1);
cout<<"\n Sub from variable total : "<<sub;
}
getch();
return 0;
}
And I really dont understand the last one, someone please explain it in detail..