Declare integer variables x, y, z and assign the value 10 in the y and 20 in the z.
#include <stdio.h>
int main()
{
int y=10;
int z=20;
int x=z+y;
printf("The value of x is:%d ",x);
printf("\nThe value of y is:%d ",y);
printf("\nThe value of z is:%d ",z);
return 0;
}
Comments
Leave a comment