A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 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