1.
#include <stdio.h>
2.
int main(void)
3.
{
4.
int n, i;
5.
long long fact = 1;
long long is data type that used to store integers in range:
[-2^63; 2^63-1].
It cannot store decimal values, but it gives chance of working with quite big numbers.
6.
printf("Enter Numb");
7.
scanf("%d", &n);
8.
if (n < 0)
9.
{
10.
printf("Error!");
11.
}

Tenter AI
online
Active users
Hours of Videos
Better
Get solution for your code in seconds.
Get started

Connect with 100+ experts
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Create new problems, and solve existing ones in our community.