Math, asked by danishauh4599, 1 year ago

sum and difference of two numbers hackerrank solution

Answers

Answered by chunmun30
4
LET THE NUMBERS BE 8 AND 9

THEIR SUM... ...

9 + 8 = 17

THEIR DIFFERENCE ...

9 - 8 = 1
Answered by topanswers
13

#include<stdio.h>

int main()

{

   int i, j;

   float f, g;

   printf("Enter two numbers to find their sum and difference\n");

   scanf("%d %d", &i, &j);

   printf("%d %d\n", i+j, i-j);

   return 0;

}

Similar questions