operaciones

Zaid · November 18, 2020 · C++
#include <iostream>
#include <math.h>
using namespace std;
int a,b,s,r,m,d,mod;
int main(int argc, char *argv[]) {
	cin>>a;
	cin>>b;
	if(0<a && b<pow(10,5)){
			s = a+b;
			r = a-b;
			m = a*b;
			d = a/b;
			mod = a%b;
			cout<<"\n "<<s<<" "<<r<<" "<<m<<" "<<d<<" "<<mod;
	}else
	return 0;
}

Comments

Please sign up or log in to contribute to the discussion.