Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Programming language c

Reza Muhammad RamdaniReza Muhammad Ramdani Member Posts: 1

Show and explain the meaning of the example program below, which includes
A. Data Type
B. Constants
C. Variable
D. Declaration
E. Operator
F. Said Something
G. Program Comments

Sample Program:

Include "stdio.h"

Include "conio.h"

void main ()
{int x;
float y;
char z;
Donle w;
clrscr (); / * to clear the screen * /
x = 10; / * Variable x filled with 10 * /
Y = 9.45; / * variable y filled with 9.45 * /
Z = 'C'; / * variable z filled with character "C" * /
W = 3.45E + 20; / * Variable w filled with 3.45E + 20 * /
Printf ("The value of x is: ℅i / n", x); / * Displays the contents of the variable x * /
Printf ("The value of y is: ℅f / n", y); / * Displays the contents of the variable y * /
Printf ("The value of z is: ℅c / n", z); / * Displays the contents of the variable z * /
Printf ("The value of w is: ℅If / n", w); / * Displays the contents of the variable w * /
getch ();
}

Sign In or Register to comment.