Tag: Use scanf() in C Language

scanf() Use in C Language

scanf() Use in C Language: (1) scanf() is used for entering input values.  (2) Sample C language code and its output, as shown: #include <stdio.h>#include <conio.h> int main(){int n;printf(“Enter the value: “);scanf(“%d”,&n);printf(“Entered value is: %d”, n);getch();return 0;} (3) After that go to the “Build” menu and select the “Build” option for publishing the code as shown. (4) …