Define int variable and output
/* Variables */
#include <stdio.h>
void main()
{
int a; /* Declare an int variable called a */
int b; /* and another int variable called b*/
a = 7; /* Store 7 in the variable a */
b = 7; /* Store 7 in the variable b*/
/* Display some output */
printf("a is %d and b is %d ", a, b);
}
Related examples in the same category