Computer Science, asked by whitedevil81, 11 months ago

WAP to input two numbers and an AIRTHMETIC operator and perform operations according to the given operator.. using if... ELSE if​

Answers

Answered by 01DEVKARDAM10
1

Answer:

Explanation:

#include<upstream.h>

#include<conio.h>

void main()

{

Int a,b,c

cout<<"Enter any no.";

cin>>a>>b;

if(b<a)

{C=a-b;

cout<<c;

}

else if(a<=b)

{

c=b-a;

cout<<c;

}

else

{

cout<<"#303 error";

}

}

I hope it's your ans.

Mark as brainist

Similar questions