from __future__ import division
import os
import sys
import glob
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
%matplotlib inline
%precision 4
plt.style.use('ggplot')
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)
import sys
number = int(sys.argv[1])
if not number <= 1:
for i in range(2, number):
if (number % i) == 0:
print("Not prime")
break
else:
print("Integer must be greater than 1")
class Smartphone
{
private:
int ramSize;
string processorName;
float screenSize;
int cameraCount;
string androidVersion;
public:
void call();
void text();
void photo();
void video();
}
class Smartphone
{
private:
int ramSize;
string processorName;
float screenSize;
int cameraCount;
string androidVersion;
public:
void call();
void text();
void photo();
void video();
}
class Smartphone
{
private:
int ramSize;
string processorName;
float screenSize;
int cameraCount;
string androidVersion;
public:
void call();
void text();
void photo();
void video();
}
class Smartphone
{
private:
int ramSize;
string processorName;
float screenSize;
int cameraCount;
string androidVersion;
public:
void call();
void text();
void photo();
void video();
}
#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;
}
#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;
}