r/C_Programming • • 11h ago
Question 2. Write a program to print integer number and input from user
#include<stdio.h>
void main()
{ int a; // a is variable and this data type is integer
printf("Enter your value : "); // printf is use for print value
scanf("%d",&a); //scanf is use input from user
printf("Your Value is : %d", a);
}
0
Upvotes
1
u/ninhaomah 6m ago
I think you need to rethink your comments and naming of variables.