PROGRM DIVISABLE BY 7

 using System;

public class HelloWorld

{

    

Using System;

public class hello world

{

public static void Main(string[] args)

    {

        int i,n;

        n=8;

        for (i=1;i<=500;i++)

        {

            if (i%n==0)

        {

        Console.WriteLine (i);

        }

        }

    }

}

OUTPUT :


8

16

24

32

40

48

56

64

72

80

88

96

104

112

120

128

136

144

152

160

168

176

184

192

200

208

216

224

232

240

248

256

264

272

280

288

296

304

312

320

328

336

344

352

360

368

376

384

392

400

408

416

424

432

440

448

456

464

472

480

488

496


Comments

Popular posts from this blog

React