Question
use only C language: Write code, which will ask user to enter one decimal number and ask user about data type to use - char,
use only C language:
Write code, which will ask user to enter one decimal number and ask user about data type to use - char, int or long long. Calculate and show to user value of factorial of entered number or inform user that correctly calculate value of factorial of entered number with selected data type is not possible. For calculation use for loop. Calculation should be stopped immediately as soon as in it will appear error (to not to waste time). Algorithm should not use constants of limits of data types, value of factorial shouldnt be compared with zero, verification of sign of value of factorial cannot be used, in calculations data type no other than user selected should be used.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started