Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Integer-sequence/C/integer-sequence-2.c
Normal file
14
Task/Integer-sequence/C/integer-sequence-2.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include <gmp.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
mpz_t i;
|
||||
mpz_init(i); /* zero now */
|
||||
|
||||
while (1) {
|
||||
mpz_add_ui(i, i, 1); /* i = i + 1 */
|
||||
gmp_printf("%Zd\n", i);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue