#include <iostream> using namespace std; int Sum(int N,int sum) { if(N<=0) { return sum; } sum=sum+(N%10); int ans =Sum(N/10,sum); return ans; } int main() { int N; cin>>N; int y= Sum(N,0); cout<<y; return 0; }
Have you seen the movie "Matrix"?This matrix effect is inspired by that movie only.This effect is one of the fascinating capabilities of cmd (which is ignored most often by us) Copy and paste this code in your Notepad and Save the file as "Matrix.bat".
In this post I am gonna tell you How To Format Your Pendrive Using CMD. With the increase in technological advancements the use of data transfer medium has also increased.
Comments
Post a Comment