Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

c to python converter

#include
#include <stdio.h>

int main()
{
    int i, n;

    printf("Enter the value of n : ");
    scanf("%d", &n);

    printf("Number  Square  Cube
");

    for (i = 1; i < n + 1; i++)
    {
        printf("%d 	 %d 	 %d
", i, i * i, i * i * i);
    }

    return 0;
}
Source by www.w3schools.blog #
 
PREVIOUS NEXT
Tagged: #python #converter
ADD COMMENT
Topic
Name
4+8 =