Input Functions In C use in programs printf() putchar() puts()
Input Functions In C #include< stdio.h > #include < conio.h > i nt main() { i nt a,b,c ; printf (“Enter the first number:”); scanf (“% d”,&a ); printf (“Enter the second number:”); scanf (“% d”,&b ); c= a+b ; printf (“the sum is %d”,c); getch(); } printf Always after printf statement
Input Functions In C #include< stdio.h > #include < conio.h > Int main() { char ch ; ch =‘b’; putchar( ch ); getch (); } putchar()
Input Functions In C #include< stdio.h > #include < conio.h > int main() { char name[20]; strcpy (name,” Sajjad Haider ”); puts(“hello”); puts(“name”); getch (); } puts (name)