Integer sequence: Difference between revisions

Content deleted Content added
→‎{{header|C++}}: include cstdint, use uint32_t.
→‎{{header|C}}: being explicitly 32-bit is silly. also a space in control structures (helps distinguish them from functions)
Line 13:
int main()
{
uint32_tunsigned int i = 0;
while (1)
{
printf("%u\n", ++i);
Line 28:
int main()
{
for (uint32_tunsigned int i = 1; 1; i++)
printf("%u\n", i);