qbasic
...... pleAse answer fast
............
Attachments:
Answers
Answered by
0
Answer:
Made by C language ...
Really easy ...
Explanation:
#include<stdio.h>
void main(void){
int X,Y,OP,Ans;
printf("Enter the OP ");
scanf("%d",&OP);
printf("Enter the X : ");
scanf("%d",&X);
printf("Enter the Y : ");
scanf("%d",&Y);
if(OP==1){
Ans = X + Y ;
}else if(OP==2){
Ans = X - Y ;
}else if(OP==3){
Ans = X * Y ;
}else {
Ans = X / Y ;
}
printf("The Answer is : %d",Ans);
}
Eng : Hisham Raid Abualhaj
Similar questions