Answer:
// This program is written in C++ programming language
// Comments are used for explanatory purpose
// Program starts here
#include <iostream>
#include <string>
using namespace std;
// Declare variables
int inputvar;
// Declare output variable as array
int outputvar[32];
// Set a counter for binary array
int i = 0;
while (inputvar > 0) {
// Divide inputvar by 2 and store remainder in outputvar
outputvar[i] = n % 2;
inputvar/=2;
i++; // increment i by 1
}
// End of division
// Prin resulting array in reverse order
for (int j = i - 1; j >= 0; j--) {
cout << outputvar[j];
}
return 0;
}
// End of Program
Answer:
true
Explanation:
let me know if it's right
Explanation:
There are various basic computer programming languages and one of them is the C language, the base of many computer lanuages.
The code of finding factorial is written below;
CODE
#include<stdio.h>
int main (void)
{
int i,
int factorial =1,
int input;
printf("Enter a number for finding its factorial: ");
scanf("%d",&input);
if (input == 0)
factorial = 0
eles
for ( i =1; I < = input ;i++)
factorial = factorial*i;
printf("Factorial of given %d is: %d",input,factorial);
return 0;
}
Answer: Cool!
Explanation: That's sounds amazing!^^
I think the answer is c wooden frame