#include<iostream>
#include<windows.h>
#include<conio.h>
using namespace std;
int main()
{
aa:
system("cls");
int x,y,z;
char ch;
cout<<"please input number";
cout<<"\n x=";
cin>>x;
cout<<"\n y=";
cin>>y;
z=x+y+x/y+y-x;
cout<<z;
cout<<"press q to exit any to continue";
ch=getch();
if(ch!='q')
{
goto aa;
}
return 0;
}
Output of the above program
please input number
x=16
enter for following information
y=17
enter for following information
34
No comments:
Post a Comment