1’den 1000’e

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

/Please dont change namespace, Dcoder and class must not be public/

//Compiler version 4.0, .NET Framework 4.5

namespace Dcoder
{
public class Program
{
public static void Main(string[] args)
{
//Your code goes here
int L;
int Toplam = 0;
int Sayac = 0;
for (L=0; L<=1000; L+=5){
Console.WriteLine(“{0}.Sayi:{1}”, Sayac,L);
Toplam=Convert.ToInt32(Toplam + L);
Sayac +=1;
}
Console.WriteLine(Toplam);
}
}
}


Yorumlar

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

This site uses Akismet to reduce spam. Learn how your comment data is processed.