Question

me 1 hour, 17 minutes, 19 seconds. Question Completion Status 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 aestion 12 Write a C code b
Remaining Time: 1 hour, 17 minutes, 08 seconds Question Completion Status 12 313568 y uno 300000 300000 is smaller than 32717
0 0
Add a comment Improve this question Transcribed image text
Answer #1

#include<stdio.h>
#include<stdlib.h>
int main(void)
{
long val;
char *string = "H00327177", *ptr = string;
while (*ptr) {// While there are more characters to process...
if (isdigit(*ptr))
// Found a number
{
val = strtol(ptr, &ptr, 10);
} else {
// Otherwise, move on to the next character.
ptr++;
}
}
long int n;
printf("Please enter any number-\n");
scanf("%ld",&n);
if(n<0)
{
printf("%ld is an invalid number ",n);
exit(0);
}
else if(n>val)
{
printf("%ld is greater than %ld",n,val);
}
else if(n==val)
{
printf("%ld is equal to %ld",n,val);
}
else
{
printf("%ld is smaller than %ld",n,val);
}
return 0;
}

Add a comment
Know the answer?
Add Answer to:
me 1 hour, 17 minutes, 19 seconds. Question Completion Status 1 2 3 4 5 6...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Remaining Time: 1 hour, 08 minutes, 27 seconds. Question Completion Status: 1 2 3 4 5...

    Remaining Time: 1 hour, 08 minutes, 27 seconds. Question Completion Status: 1 2 3 4 5 6 7 8 9 10 11 12 Question 4 For a company that uses a year as its interest period, determine the net cash flow that will be recorded at the end of the year from the cash flows she Receipts, $1000 Month 500 800 200 Disbursements, $1000 300 500 400 400 500 600 120 600 Jan Feb Mar Apr May June July Aug...

  • Remaining Time: 1 hour, 56 minutes, 59 seconds. Question Completion Status: 1 2 3 4 5...

    Remaining Time: 1 hour, 56 minutes, 59 seconds. Question Completion Status: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 The following tasks, which cannot be split, must be performed on an assembly line in the sequence and the times specified. TASK Time (sec) Predecessors None None B, F, G Total: 250 Which of the following is the correct network diagram? O O O O oooo 0 0...

  • me: 1 hour, 21 minutes, 14 seconds. Question Completion Status: natically. in one sitting. Do not...

    me: 1 hour, 21 minutes, 14 seconds. Question Completion Status: natically. in one sitting. Do not leave the test before when time 30 seconds rem Moving to another question will save this response. Question 5 Americans visiting Europe would prefer an exchange rate of $1.40 = 1 euro rather than $1.20 = 1 euro. True False → A Moving to another question will save this response.

  • Remaining Time: 1 hour, 05 minutes, 56 seconds. Question Completion Status: 4 5 6 9 1...

    Remaining Time: 1 hour, 05 minutes, 56 seconds. Question Completion Status: 4 5 6 9 1 3 7 8 10 11 15 2 12 14 13 An electrical circuit is connected to 24 mV voltage source. The total current (in units of A) in the circuit is 5 Ω 2502 I w 2002 | 1.6 mA 0.625 mA 1.6 A 0.53 mA L Moving to another question will save this response.

  • Remaining Time: 1 hour, 19 minutes, 38 seconds. Question Completion Status: QUESTION 1 A buyer values...

    Remaining Time: 1 hour, 19 minutes, 38 seconds. Question Completion Status: QUESTION 1 A buyer values a house at 5525,000 and a seller values the same house at $485,000. If sales tax is 8% and is levied on the buyer, then, what would be the highest price that the buyer would be willing to pay? a. 5525,000 Ob.5486,111 O c. 5523.00 d. 145,000 QUESTION 2 A consume values a car at $30,000 and a producer values the same car at...

  • Blackboard + →XCIO Remaining Time: 1 hour. 33 minutes. 49 seconds. Question Completion Status 4 5...

    Blackboard + →XCIO Remaining Time: 1 hour. 33 minutes. 49 seconds. Question Completion Status 4 5 7 Question 1 points Westland PLC is a British manufacturer of skateboards. You have been presented with the information about the company in Table 1 below, and have been asked to assist the finance director answer the questions below. 64 10 Table 1: Westland PLC financial information as of 31 December 2019 EBIT (milion GBP) Net Income million GOP Number of shares outstanding on...

  • Remaining Time: 1 hour, 27 minutes, 38 seconds. Question Completion Status: QUESTION 7 At the end...

    Remaining Time: 1 hour, 27 minutes, 38 seconds. Question Completion Status: QUESTION 7 At the end of the G1 checkpoint, cyclin has not binded to Cdk. Therefore... O a. The cell will proceed into the S phase of interphase O b. The cell will proceed into prophase of mitosis O c. The cell will enter the GO phase O d. The cell will undergo apoptosis O e. DNA will be repaired

  • Blackboard <=XC Remaining Time: 1 hour, 32 minutes, 26 seconds. Question Completion Status Click Submit to...

    Blackboard <=XC Remaining Time: 1 hour, 32 minutes, 26 seconds. Question Completion Status Click Submit to complete this assessment. Question of Stue Question 7 10 points North West PLC is a small construction tollsmanufacturer based in Liverpool (UK). Below are some information from the company's financial statements. All amounts are in millions of pounds (GBP) unless stated. Sales (15,000,000 units at GEP 18.65 per unit) 279.75 Contribution margin 129.75 Variable costs (15.000.000 units at GBP 10 per unit 150.00 Forced...

  • emaining Time: 1 hour, 12 minutes, 33 seconds. Question Completion Status: QUESTION 84 All of the...

    emaining Time: 1 hour, 12 minutes, 33 seconds. Question Completion Status: QUESTION 84 All of the following would be considered cardiovascular adaptations to aerobic training except: A. decreased plasma volume B. increased cardiac output C. decreased blood pressure D. increased capillarization QUESTION 85 The inspired air that does not make it to the alveoli in one breath is known as: A. physiologic dead space air B. anatomic dead space air peripheral air D.functional core air Click Save and Submit to...

  • Remaining Time: 1 hour, 31 minutes, 02 seconds Question Completion Status: 23 24 25 QUESTION 19...

    Remaining Time: 1 hour, 31 minutes, 02 seconds Question Completion Status: 23 24 25 QUESTION 19 A firm needs to stand out on at least one attribute of the value proposition to demonstrate a competitive advantage. O True False QUESTION 20 The Balanced Scorecard is intended to be used by large multiproduct ompanies only True False 23 4

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT