L03 data input and output

Page 1

emeronTI3 ³

bBa©Úl nig beBa©jTinñn½y DATA Input & Output

I. GnuKmn_ printf ( ) and putchar ( ) :

Ca Function sMrab; Print Tinñn½yEdlenAkñúgsBaØa “ … ” mkelI Screen output . Binitü]TahrN_xageRkam ³ + printf ( ) :

# include < stdio.h > # include < conio.h > main ( ) { int n; float x; char ch; n = 5; x = 8.2; ch = ‘A’ ; clrscr (); printf (“ print values : %d getch ( ); return (0); }

%f

%c

“ , n, x, ch );

Edl % Ca Format code nig d Ca Conversion code . + ebIcg; print Expression (Variable ) enaHeyIgRtUvkMNt; eGaytMélénkenSamenaH . Note : + %d

tarag Format Code :

Format


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.