English
Open in Telegram

Message#include <iostream>

19 April 2023
J
#include <iostream> #include <cmath> using namespace std; int main (){ int n, m, s=0, y; cin>>n>>m; int x=n%int(pow(10,m)); while(x!=0){ y=x%10; s+=y; x/=10; } cout<<s; } /stdin 1232 2

Nearby in the feed

DDeleted Account#include <iostream> #include <cmath> using namespace std; int main (){ int n, m, s=0, y; cin>>n>>m; int x=n%int(pow(10,m)); while(x!=0){ y=x%10; s+=y; x/=10; } DDeleted AccountBu ishladi
this message
JJ. M./cpp@RextesterRoBotJJ. M.#include <iostream> #include <cmath> using namespace std; int main (){ int n, m, s=0, y; cin>>n>>m; int x=n%int(pow(10,m)); while(x!=0){ y=x%10; s+=y; x/=10; }
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