Please convert the following C code to Python
#include <stdio.h>
#include<stdlib.h>
int main()
{
int N, X;
scanf("%d %d", &N, &X);
for (int ctr = 1; ctr <= X; ctr++) {
N += printf("%d", N); printf(" ");
} return 0;
}
Please convert the following C code to Python
#include <stdio.h>
#include<stdlib.h>
int main()
{
int N, X;
scanf("%d %d", &N, &X);
for (int ctr = 1; ctr <= X; ctr++) {
N += printf("%d", N); printf(" ");
} return 0;
}
Post a Comment