You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
518 B
27 lines
518 B
1 year ago
|

|
||
|
|
||
|
```cpp {.line-numbers}
|
||
|
// Created by www.runoob.com on 15/11/9.
|
||
|
// Copyright © 2015年 菜鸟教程. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#include<stdio.h>
|
||
|
#include<stdlib.h>
|
||
|
int main()
|
||
|
{
|
||
|
int x,i=0,j=1;
|
||
|
while(i<5){
|
||
|
x=4*j;
|
||
|
for(i=0;i<5;i++)
|
||
|
{
|
||
|
if(x%4!=0){break;}
|
||
|
x=(x/4)*5+1;
|
||
|
}
|
||
|
j++;
|
||
|
}
|
||
|
printf("%d\n",x);
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
```
|