
Search In
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,remainder,cnt=0,i,temp1;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
temp1=i;
while(temp1)
{
remainder=temp1%10;
if(re
Rails Internationalization : Configure the i18n Module
As we all aware that whenever we use term web, it refers to globalization of application. For globalization, your application must support multi-language support. In ruby i18n provides the supp
Singly Linklist:- Hii Friends, The Below code will show you how we can create singly Linklist in Data Structure using C. we can simply create the singly linklist using the pointers and malloc function to insert and delete element dynamically.
#inclu
Hi, this blog is to help you to know about 0/1 knapsack problem and how to solve it using Java.
Problem Definition
Suppose there is a thief who came to steal thing from someone's home. He has a knapsack(shoulder bag) with him
Jquery have a nice feature to know about browser details. it is deprecated, If the functionality is removed, it will likely be easily accessible using a plugin.
It is safe to use it to determine whether or not to call $(document).ready(
Exception Handling in Rails using begin rescue
Exception is a condition, that occurs when something goes wrong in a code. Normally in that case the program gets terminated. In rails, an object containing the information of the error is an instance o
In our regular programming life, we always come in to situation where we need to pick few elements from array, remove them or insert some elements into them. In ruby there are methods available for such operations. Some of them are:
1) Select:
Sele
Structure is basically a user defined datatype which is a collection of heterogeneous elements.
Each element of a structure is called a member.
It works like a template in C++ and class in Java.
It is used to store student information, employee
Counting number of vowels,consonants and digits in a string:
In this program we are counting how many vowels ,consonants and digits are in the string which will be entered by the user. After user inputs a string , string will be iterated from 0th i
We can easily identify the name of the browser, with the help of "JS navigator".Here we have used the "window.navigator" object that contains information about the visitor's browser.We can write "window.navigator" object without the "window" prefix