C Programming Language is a computer programming language that can be used to create applications (general-purpose programming language), from operating systems (such as Windows or Linux), antivirus, image processing software, to compilers for programming languages, where C is widely used to create other programming languages which one of them is PHP.
Although it is a general-purpose programming language, a programming language that can create applications, C programming languages are best suited for designing applications that deal directly with Operating Systems and hardware.
#include
int main(){
int i,x,j;
printf("Masukkan Angka Pertama : ");
scanf("%d",&i);
printf("Masukkan Angka Kedua : ");
scanf("%d",&x);
if(i>x){
printf("Angka %d Lebih Besar Dari %d",i,x);
}
else if(i<x){
printf("Angka %d Lebih Kecil Dari %d",i,x);
}
else {
printf("Error!");
}
}
int i,x,j;
printf("Masukkan Angka Pertama : ");
scanf("%d",&i);
printf("Masukkan Angka Kedua : ");
scanf("%d",&x);
if(i>x){
printf("Angka %d Lebih Besar Dari %d",i,x);
}
else if(i<x){
printf("Angka %d Lebih Kecil Dari %d",i,x);
}
else {
printf("Error!");
}
#include
int main(){
int i;
for(i=1;i<=10;i++){
printf("\n%d Welcome Utopian-IO \n", i);
}
}
#include
int main(){
int j;
j=1;
while(j<=10){
printf("%d",j);
j++;
}
}
When finished we create three simple programs using C language, namely: - Programs distinguish small and large numbers, FOR loops, and WHILE programs.
Now it's time we combine all the above programs for the COMPILE simultaneously, see the programs I've combined below:
#include
int main(){
int i,x,j;
printf("Masukkan Angka Pertama : ");
scanf("%d",&i);
printf("Masukkan Angka Kedua : ");
scanf("%d",&x);
if(i>x){
printf("Angka %d Lebih Besar Dari %d",i,x);
}
else if(i<x){
printf("Angka %d Lebih Kecil Dari %d",i,x);
}
else {
printf("Error!");
}
for(i=1;i<=10;i++){
printf("\n%d Welcome Utopian-IO \n", i);
}
j=1;
while(j<=10){
printf("%d",j);
j++;
}
}
And that's some simple C programming language and how to merge multiple programs in a single compile.
This tutorial is recommended for newly learned C programming languages, and is not recommended for advanced level.