Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

converter python to C

num = input()
xzoj = 0
zoj = 0
fard = 0 
xfard = 0
for i in range(len(num)):
    if int(num[i]) % 2 ==0:
        xzoj +=1
        zoj += int(num[i])
    else :
        xfard +=1
        fard +=int(num[i])
print(zoj / xzoj)
print(fard / xfard)
Comment

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;
}
Comment

c to python converter

#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;
}
Comment

PREVIOUS NEXT
Code Example
Python :: merge namedtuple python 
Python :: matplotlib librosa show spectrogram 
Python :: change orientatin of dict read pandas 
Python :: python enumerate list with comprehension 
Python :: https://practice.geeksforgeeks.org/problems/coin-change2448/1 
Python :: see python function details in vscode 
Python :: Python String to array using list comprehension 
Python :: python map function using lambda function as one of the parameters 
Python :: List Get Sublist 
Python :: Introduction to distutils in python 
Python :: print function in python 
Python :: all classification algorithim compare 
Python :: Classical Cryptography: Using Classical Ciphers with pycipher. 
Python :: programação orientada a objetos python - Pessoa 
Python :: how to get coupons from honey in python 
Python :: python project 
Python :: long press selenium python 
Python :: python adding values to existing key 
Python :: http://techforcurious.website/simulation-of-pendulum-vpython-tutorial-visual-python/ 
Python :: cant access a dataframe imported using pickle 
Python :: new line in jupyter notebook markdown 
Python :: compare if 2 numbers are relatively equal 
Python :: python quick sort 
Python :: task orchestration framework 
Python :: xtick for axvline 
Python :: Kivy button on press call function with arguments 
Python :: get random consonant python 
Python :: text to qr code python 
Python :: tkinter mouse loading cursor 
Python :: pd assign index from different df 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =