English
Open in Telegram

Thread#include <iostream>

3 messages · –
D
#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 123 2
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