your answer should be TRUE if i’m correct..
MARK ME BRAINLIEST PLEASE IF IM CORRECT
<u>Answer:</u>
<em>void main()
</em>
<em>{
</em>
<em>int n, i, fact=1;
</em>
<em>printf(""Enter the number\n"");
</em>
<em>scanf(""%d"",&n);
</em>
<em>i=num
</em>
<em>while(i>=1)
</em>
<em>{
</em>
<em>fact=fact * i;
</em>
<em>i--;
</em>
<em>}
</em>
<em>printf(""The factorial of given number %d is %d\n"", n, fact);
</em>
<em>return 0;
</em>
<em>}
</em>
<u>Explanation:</u>
This program obtains the number for which the factorial has to be found.
Then run a for loop till the factor of 1 is calculated and inside the for loop the number is multiplied with <em>other numbers in the descending order and finally result is printed.
</em>
I’m sorry, I wouldn’t know considering you could do it in a different place then me. Other states do it in other ways.
Answer:
Explanation:
The code can be computed as follows:
#include <stdio.h>
void BackwardsAlphabet(char currLetter){
if (currLetter == 'a') {
printf("%c\n", currLetter);
}
else{
printf("%c ", currLetter);
BackwardsAlphabet(currLetter - 1);
}
return;
}
int main(void) {
char startingLetter = '-';
startingLetter = 'z';
BackwardsAlphabet(startingLetter);
return 0;
}