English
Open in Telegram

Messageusing System;

13 April 2023
D
using System; public class HelloWorld {     public static int sum(int n,int a){         int s=0;         for(int i=0;i<=n;i++){ s+=Math.Pow(a,i);         }         return s;     }     public static void Main(string[] args)     {         int n=Convert.ToInt32(Console.ReadLine()); int a=Convert.ToInt32(Console.ReadLine()); int S=sum(n,a);         Console.WriteLine (S); Console.ReadKey();     } }

Nearby in the feed

.....Dasturlashdan C++,C#,python va bowqa dasturlash tillari one million dasturchidan sertifikat ham olib beraman Arzon narxlarda lichga murojaatDDeleted Account/csharp@RextesterRoBot
this message
DDeleted Accountusing System; public class HelloWorld { public static int sum(int n,int a){ int s=0; for(int i=0;i<=n;i++){ s=s+Math.Pow(a,i); } return s; } publiJJ. M.C++ dan kimdur dars oʻtyabdimi
CC++ vs PythonC++ vs Python@cpp_vs_python · group · Tech
114members39 409messages in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count