Blog

shape
shape
shape
shape
shape
shape
shape
shape
Standard

Calculating Factorials in C

Simple C program that calculates the factorial of any number: #include int main() { int fat, n; printf(“Enter a value for which you want to calculate your factorial: “); scanf(“%d”, &n); for(fat = 1; n > 1; n = n – 1) fat = fat * n; printf(“\nFactorial calculated: %d”, fat); return 0; } How

Standard

Loop For, While and Do-While in C Language

All loops have the same function, which is to repeat an instruction a certain or undetermined number of times. The structure of the FOR loop is as follows: for(inicialização; condição; incremento) comandos; For example: #include voi main() { int x; for(x = 0; x <= 100; x++) printf(“%d”, x); } The program above displays numbers

Standard

How to install CSF Firewall – Tutorial

Learn how to install CSF Firewall. I recommend using Putty in this tutorial. Attention: It is important to know that you must not have any other iptables firewall when installing CSF, otherwise there could be a conflict between them. In putty, connect to your server and type the following commands in the following order: rm

Standard

Conditional If and Else in C

In C, a true expression is an expression that equals or returns any value other than 0 and a false expression equals or returns 0. The general form of the If and Else sentence is: if(condição) // Se a condição for verdadeira expressão; // Execute isso. else // Caso o contrário expressão; // Execute isso.

Latest news

Latest news directly from our blog.