i want to get variable names for a particular task code example
Example 1: Write a C program to do the following: (10 marks) a. Declare two variables a and b of type integer b. Initialise the value of variable a to 3 and the value of variable b to 0 c. If the value of a is greater than 0, then assign b the value of a + 3
/*
* Comment to state the purpose of this program (filename.c)
*/
#include
int main() {
int a=3,b=0;
if(a>b){
b=a+3;
printf("%d",b);
}
return 0;
}
Example 2: how to use a variable
You do things!