| |

VerySource

 Forgot password?
 Register
Search
Author: tianshnag18

Ask about it

[Copy link]

0

Threads

1

Posts

1.00

Credits

Newbie

Rank: 1

Credits
1.00

 China

Post time: 2020-2-10 21:20:18
| Show all posts
The direct print is Big Brother!
Reply

Use magic Report

3

Threads

11

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-4-15 20:00:01
| Show all posts
Master! Use the cycle! The cycle
Reply

Use magic Report

3

Threads

11

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-4-15 23:45:01
| Show all posts
#include <stdio.h>
void main ()
{
int i, j;
for (i = 1; i <5; i ++)
{
for (j = i; j> = 1; j--)
{
printf ("% d", j);
}
printf ("\n");
}
}
How about this? Ha ha !!!
Reply

Use magic Report

0

Threads

4

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-4-16 12:15:01
| Show all posts
#include <iostream>
using namespace std;
int main ()
{
  int i = 1;
  while (i ++ <5)
  {
     int k = i;
     while (k-> 1)
     cout << k; // C language replaces this sentence with printf ("% d", k)
     cout << endl; // Replace this sentence with printf ("/ n") in c language
   }
    return 0;
}
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 Invalid IP Address

Post time: 2020-4-17 23:45:01
| Show all posts
#include <stdio.h>
int main ()
{
    int i, n;
    char * p = NULL;

    printf ("please input a number:");
    scanf ("% d",&n);

    p = (char *) malloc (n + 1);

    for (i = 0; i <n; i ++)
    {
        * (p + i) = n-i + '0';
    }

    * (p + n) = '\0';
    
    for (i = 0; i <n; i ++)
    {
        printf (p + (n-i-1));
        printf ("\n");
    }
}
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 Invalid IP Address

Post time: 2020-4-18 02:15:01
| Show all posts
Upstairs use two single-loop, huh.
Reply

Use magic Report

3

Threads

11

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-4-26 17:30:02
| Show all posts
en There are several solutions to a problem, what do you think of the code I wrote myself?
Does anyone have another solution, remember to use loops !!!
Reply

Use magic Report

1

Threads

14

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-4-27 13:45:01
| Show all posts
ls has been solved almost
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-5-1 19:00:01
| Show all posts
Ha ha, are masters !!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list