sum and difference of two numbers hackerrank solution
Answers
Answered by
4
LET THE NUMBERS BE 8 AND 9
THEIR SUM... ...
9 + 8 = 17
THEIR DIFFERENCE ...
9 - 8 = 1
THEIR SUM... ...
9 + 8 = 17
THEIR DIFFERENCE ...
9 - 8 = 1
Answered by
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
English,
7 months ago
Social Sciences,
7 months ago
English,
7 months ago
Physics,
1 year ago
Physics,
1 year ago