Posts

Showing posts with the label coding

C program to find factors of any number

Image
C program to find factors of any number So, I was just sitting at my chair wondering about new posts in my blog. I  thought about a simple C program which outputs the factors of any number. The source code is given below. Please share if you find it useful. #include<stdio.h> int main(){     int no,i;     printf("Enter a number\n");     scanf("%d",&no);     printf("Factors are:\n");     for(i=2;i<=no;i++){         if(no%i==0){             printf("%d\n",i);             }             }         } Stay tune for future posts.

How to generate multiplication table in C?

Image
We learn multiplication table from childhood, but to write them in C is a task that everyone can't solve. This following program generates a multiplication table for user-defined number and range. #include<iostream> using namespace std; int main() {     int a=5,b=1,res,limit;     cout<<"Enter the length of the table\n";     cin>>limit;     do     {         res=a*b;         cout<<"\na= "<<a<<" b= "<<b<<" res= "<<res;         b++;     }while(b<=limit); return 0; } Thanks for reading. Share with the world.

How to install/flash custom ROM in Swipe Elite 2?

Well, I'm inexperienced in terms of custom ROMs for Android. But as they say, Sky is the Limit. I just got some info in XDA forums/friends regarding this project. Let's dig in. What do we know about custom ROMs? Nothing! Well, definitely something. Anyone have done custom ROM flashing on their own Swipe Elite 2 device? Comment if you have done it. Otherwise just share the post. So that we can make a kick-ass custom ROM. Abuses are not welcome though.