Buscar

intervalo entre numeros

Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
 class Program
 {
 static void Main(string[] args)
 {
 //variáveis
 int soma, ct;
 soma = 0;
 
 //processamento
 for (ct = 1; ct <= 50; ct = ct + 1)
 {
 soma = soma + ((2 * ct)- 1 / ct);
 }
 Console.ReadKey();
 }
 }
}

Teste o Premium para desbloquear

Aproveite todos os benefícios por 3 dias sem pagar! 😉
Já tem cadastro?

Outros materiais