Answer to Question #261605 in C for Marc

Question #261605

You’re tasked with pairing up people with each other but you need to figure out how well both of them work together. In order to find out how effective each pair is, you need to create a program that adds both of their values and returns their sum.


1
Expert's answer
2021-11-05T10:51:36-0400
#include <stdio.h>
#include <stdlib.h>


int main(){
	int value1;
	int value2;
	printf("Enter value 1: ");
	scanf("%d",&value1);
	printf("Enter value 2: ");
	scanf("%d",&value2);
	
	int sum=value1+value2;


	printf("\nSum = %d\n",sum);


	getchar();
	getchar();
	return 0;
}

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS