Output Functions In c programming -Code

ShouaIqbal1 7 views 4 slides Aug 31, 2024
Slide 1
Slide 1 of 4
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4

About This Presentation

programming Concepts


Slide Content

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)