Question #132648

Code 2 integers and find their difference on printf


Expert's answer

#include <iostream>
#include <stdio.h>

using namespace std;

int main()
{
  int a, b;
  cout << "Integer a: ";
  cin >> a;
  cout << "Integer b: ";
  cin >> b;
  printf ("a-b: %d ", a-b);
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS