C++ program

Source Code

#include <iostream>
using namespace std;
int main(){
struct house{
int houseno;
string housename;
int streetno;
};
house ali,ahmed;
ali.houseno=887;
ali.housename="Sardar house";
ali.streetno=07;
ahmed.houseno=699;
ahmed.housename="super saiyan house";
ahmed.streetno=083;
int a;
cout<<"enter house number"<<endl;
cin>>a;
switch(a){
case 887:{
cout<<"house name is ="<<ali.housename<<endl;
cout<<"house number is ="<<ali.houseno<<endl;
cout<<"street number is ="<<ali.streetno<<endl;
break;
}
case 699:{
cout<<"house name is ="<<ahmed.housename<<endl;
cout<<"house number is ="<<ahmed.houseno<<endl;
cout<<"street number is ="<<ahmed.streetno<<endl;
break;
default:{
cout<<"not matched "<<endl;}
}
};
}


Source

Execution 

it will show you the street number and the house number and house name of a particular parson.

I hope you will have enjoyed it.

Coin Marketplace

STEEM 0.09
TRX 0.29
JST 0.036
BTC 102504.72
ETH 3446.25
USDT 1.00
SBD 0.55