|
STANDART I/O FONKSIYONLARI
/*getchar ve puts kullanimi*/
#include <stdio.h>
main()
{
char c, cumle[80];
int sayac = 0;
puts("Lutfen bir satir cumle giriniz :");
while((c = getchar()) != '\n')
cumle[sayac++] = c;
cumle[sayac] = '\0';
puts("Girilen satir :");
puts(cumle);
return 0;
}
Girilen deger getchar ile alindi ve puts ile ekrana yazildi.
|
|
|