Answers for "how to printf n+1 infinitely in c"

0

how to printf n+1 infinitely in c

#include<stdio.h> 
int main() 
{ 
float f = 2;

while(f != 31.0)
{
    printf("%f\n", f);
    f += 0.1;
}
return 0; 
}
Posted by: Guest on September-14-2021

Browse Popular Code Answers by Language