Solution to In main take two numbers as input num1 and num2. Main thread will create 2 … - Sikademy
Author Image

Archangel Macsika

In main take two numbers as input num1 and num2. Main thread will create 2 more threads. 1. T1: Output sum of numbers from min(num1 , num2) to max(num1 , num2) 2. T2: Take a string as input and count num1 and num2 in it.

The Answer to the Question
is below this banner.

Can't find a solution anywhere?

NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?

Get the Answers Now!

You will get a detailed answer to your question or assignment in the shortest time possible.

Here's the Solution to this Question


#include <stdio.h> #define min(x, y) ((x) < (y) ? (x) : (y)) #define max(x, y) ((x) > (y) ? (x) : (y)) int main() { int x, y; scanf("%d %d", &x, &y); printf("Min=%f", min(x, y)); printf("Max=%f", max(x, y)); return 0; }

Related Answers

Was this answer helpful?

Join our Community to stay in the know

Get updates for similar and other helpful Answers

Question ID: mtid-3-stid-44-sqid-1073-qpid-69