You are on page 1of 3

#include<iostream>

using namespace std;

int main ()

cout<<"name shehzad khan"<<endl;

cout<<"cms id 46492"<<endl;

cout<<"department p&g 2nd"<<endl;

//BELOW ARE THE ARITHMATIC QUESTIONS

int a=177;

int b=29;

int t;

t=a+b;

cout<<"the result of a+b"<<t<<endl;

int u;

u=a-b;

cout<<"the reult of a-b"<<u<<endl;

int v;

v=a*b;

cout<<"the result of a*b"<<v<<endl;


float x=78;

float y=15;

float w=x/y;

cout<<"the result of x/y is "<<w<<endl;

//BELOW ARE THE IF AND ELSE STATMENTS

int e,i;

if(e>i){

cin>>e;

cout<<"e is greater than i"<<endl;}

else{

cin>>i;

cout<<"e is less than i"<<endl;}

int j,k;

if(j<=k)

{cin>>j;

cout<<"j is less than k";

else

{cin>>k;

cout<<"j is equall to k";} }

You might also like