当前位置:网站首页>{1,2,3,2,5} duplicate checking problem
{1,2,3,2,5} duplicate checking problem
2022-07-06 14:42:00 【No two or three things】
#include<stdio.h>
main(){
int a[5]={1,2,3,5,1};
int i,j,flag=0;
for(i=0;i<5;i++){
for(j=i+1;j<5;j++){
if(a[i]==a[j]){
flag = 1;
printf("%d",a[i]);
break;
}
}
if(flag==1)break;
}
return 0;
}
边栏推荐
- 循环队列(C语言)
- 链队实现(C语言)
- Four methods of exchanging the values of a and B
- 《统计学》第八版贾俊平第八章假设检验知识点总结及课后习题答案
- 【指针】查找最大的字符串
- 指针 --按字符串相反次序输出其中的所有字符
- This article explains in detail how mockmvc is used in practical work
- 《统计学》第八版贾俊平第五章概率与概率分布
- Load balancing ribbon of microservices
- Apache APIs IX has the risk of rewriting the x-real-ip header (cve-2022-24112)
猜你喜欢
servlet中 servlet context与 session与 request三个对象的常用方法和存放数据的作用域。
《统计学》第八版贾俊平第十四章指数知识点总结及课后习题答案
Record an edu, SQL injection practice
后台登录系统,JDBC连接数据库,做小案例练习
Windows platform mongodb database installation
Realize applet payment function with applet cloud development (including source code)
1. Payment system
Hcip -- MPLS experiment
《统计学》第八版贾俊平第七章知识点总结及课后习题答案
Summary of thread implementation
随机推荐
On the idea of vulnerability discovery
Binary search tree concept
Solutions to common problems in database development such as MySQL
Flash implements forced login
Intel oneapi - opening a new era of heterogeneity
数字电路基础(四) 数据分配器、数据选择器和数值比较器
Sqqyw (indifferent dot icon system) vulnerability recurrence and 74cms vulnerability recurrence
[pointer] the array is stored in reverse order and output
【指针】数组逆序重新存放后并输出
Apache APIs IX has the risk of rewriting the x-real-ip header (cve-2022-24112)
Statistics 8th Edition Jia Junping Chapter XIII Summary of knowledge points of time series analysis and prediction and answers to exercises after class
Fundamentals of digital circuit (IV) data distributor, data selector and numerical comparator
我的第一篇博客
Four methods of exchanging the values of a and B
移植蜂鸟E203内核至达芬奇pro35T【集创芯来RISC-V杯】(一)
《统计学》第八版贾俊平第三章课后习题及答案总结
《统计学》第八版贾俊平第九章分类数据分析知识点总结及课后习题答案
《统计学》第八版贾俊平第十二章多元线性回归知识点总结及课后习题答案
线程的实现方式总结
【指针】删除字符串s中的所有空格