Category: ACM Technique
It’s possible with addition: #include<iostream> using namespace std; int main(){ int x=10,y=15; cout<<“Before swapping: x=”<<x<<“y=”<<y<<endl; x=x+y; //25…
code: #include<stdio.h> void printNo(unsigned int n) { if(n==0) return; //it is outing from this function and going…
code: #include<stdio.h> void printMsg(unsigned int n) { if(n==0) return; //when we are using return in void function…
We see lots of void in C. Lets clear why we all use this. int myFunc(void){ }…
Code is here: #include<stdio.h> int main() { int number; scanf(“%d”,&number); char digits[2000000]; int i=0,d; while(number>0) { d=number%10;…
code by me: #include<stdio.h> #include<math.h> int getTotalDigits(int); int isArmStrong(int,int); int getTotalDigits(int n) { int count=0; while(n>0) {…
Recent Comments