As a start I'll explain a little history of C + +. C + + is a programming language, computer C + + was developed at Bell Labs (Bjarne Stroustrup) in the early 1970s, the language is derived from the previous language, namely BCL, At first, the language is designed as a programming language that runs on Unix systems, the development, version of the ANSI (American National Standard Institute) C programming language became the dominant version, Though this version is now rarely used in the development of systems and networks as well as for embedded systems. In C + + added new concepts such as classes with properties such as inheritance and overloading. One of the most fundamental differences with the C language is support for the concept of object-oriented programming (Object Oriented Programming).
above is a little description about the C + +, this time we just make the program find the area and circumference of a circle. This is a script-script:
above is a little description about the C + +, this time we just make the program find the area and circumference of a circle. This is a script-script:
#include <stdio.h>
int main (void){
float a,luas,keliling;
printf("Masukkan Jari-Jari = ");
scanf("%f",&a);
luas = 3.14 * a *a ;
keliling = 2*3.14*a;
printf("Luas Lingkaran =%.2f\n",luas);
printf("Keliling Lingkaran =%.2f\n",keliling);
return 0;
}
int main (void){
float a,luas,keliling;
printf("Masukkan Jari-Jari = ");
scanf("%f",&a);
luas = 3.14 * a *a ;
keliling = 2*3.14*a;
printf("Luas Lingkaran =%.2f\n",luas);
printf("Keliling Lingkaran =%.2f\n",keliling);
return 0;
}
so this tutorial from the coding Edan, if there are errors or wrong words please understandable because it was a newbie.
I shall see in the next tutorial :D











0 Comment:
Post a Comment