当前位置:网站首页>Zzuli:1046 product of odd numbers
Zzuli:1046 product of odd numbers
2022-07-03 14:34:00 【Snake_____】
Title Description
Here you are. n It's an integer , Find the product of all the odd numbers in them .
Input
The first number is n, Indicates that this group of data has n individual , Next is n It's an integer , You can assume that there must be at least one odd number in each set of data .
Output
Output n Product of all odd numbers in the number , Occupy a line .
The sample input Copy
5 2 5 4 6 7
Sample output Copy
35
#include <stdio.h>
int main()
{
int n,i,mul=1,num;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&num);
if(num%2!=0)
{
mul=mul*num;
}
}
printf("%d",mul);
return 0;
}边栏推荐
- 论文分享:Generating Playful Palettes from Images
- 使用并行可微模拟加速策略学习
- LNMP环境mail函数不能发送邮件解决
- Detailed explanation of four modes of distributed transaction (Seata)
- Ultra simple mobile map development
- Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder
- 7-28 monkeys choose King (Joseph problem)
- Why is this error reported when modifying records in the database
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- 超简单手机地图开发
猜你喜欢

Tonybot humanoid robot infrared remote control play 0630

论文分享:Generating Playful Palettes from Images

tonybot 人形機器人 紅外遙控玩法 0630

Tiantu investment sprint Hong Kong stocks: asset management scale of 24.9 billion, invested in xiaohongshu and Naixue

愉悦资本新双币基金近40亿元完成首次关账

Tonybot Humanoïde Robot Infrared Remote play 0630
![Luogu p4047 [jsoi2010] tribal division solution](/img/7f/3fab3e94abef3da1f5652db35361df.png)
Luogu p4047 [jsoi2010] tribal division solution

Analysis of gene family characteristics - chromosome location analysis

剑指 Offer 28. 对称的二叉树

Eight sorts
随机推荐
Doris学习笔记之数据表的创建
Zabbix添加Calculated items后保存页面成空白
Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million
Plane vector addition
光猫超级账号密码、宽带账号密码 获取
Puzzle (016.4) domino effect
Tonybot Humanoïde Robot Infrared Remote play 0630
Detailed explanation of four modes of distributed transaction (Seata)
556. 下一个更大元素 III : 简单构造模拟题
Programming language: the essence of type system
牛客网:过河卒
适用于XP的DDK
Special research report on the market of lithium battery electrolyte industry in China (2022 Edition)
Pyqt interface production (login + jump page)
天图投资冲刺港股:资产管理规模249亿 投了小红书与奈雪
NPM install is stuck with various strange errors of node NPY
如何查询淘宝天猫的宝贝类目
2021年区域赛ICPC沈阳站J-Luggage Lock(代码简洁)
The mail function of LNMP environment cannot send mail
7-20 print 99 formula table (format output)