Sayıların printf Fonksiyonuyla Formatlanması sayfa 78
This commit is contained in:
27
c-basic/do_while_example_01.c
Normal file
27
c-basic/do_while_example_01.c
Normal file
@@ -0,0 +1,27 @@
|
||||
#include <stdio.h>
|
||||
#include <ncurses.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
|
||||
char ch;
|
||||
|
||||
do
|
||||
{
|
||||
|
||||
printf("(e)vet/(h)ayir?");
|
||||
|
||||
ch = getch();
|
||||
printf("%c\n", ch);
|
||||
} while (ch != 'e' && ch != 'h');
|
||||
|
||||
if (ch == 'e')
|
||||
|
||||
printf("evet secildi\n");
|
||||
|
||||
else
|
||||
|
||||
printf("hayir secildi\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user