c programming While loop snippet Print hi 5 times visual studio console

preview_player
Показать описание
#include "stdafx.h"
#include stdio.h

// print 5 times Hi
int main()
{
int i = 0;
while (i ? 5)
{
printf("%d Hi\n", i);
i++;
}
getchar();
}
Рекомендации по теме
visit shbcf.ru