Answer to Question #239859 in C for akash

Question #239859

C programing: User Input, Error Conditions, and Math 

Part A

DUE: Monday September 20, 2021 by midnight 

Part B

DUE: Thursday September 23, 2021 by midnight 

Part A

of lab = 4% 

Part B

of lab = 1% 

1
Expert's answer
2021-09-21T04:43:44-0400


#include <stdio.h>
#include <math.h>


int main()
{
    int n;
    printf("Enter a denominator number: ");
    scanf("%d", &n);
    if( n ==0) {
    printf("Invalid Entry! denominator cannot be 0.");
    } else {
    printf("%d\n", 5400/n);
    }
    printf("Value 10 ^ 4 = %lf\n", pow(10, 4));
    
    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