• Streams & Subjects

    Streams & Subjects

    Get detailed description of each and every topic with proper examples including text, images and videos.

  • Latest Technologies

    Latest Technologies

    Know more about the latest and new emerging technologies and boost your knowledge.

  • Programming

    Programming

    Don't learn just codes and syntax, instead learn the best and efficient way of coding.

  • Technologies

    New Technologies

    Get instant and relevant updates of the latest emerging technologies of lots of streams including web, clouds, virtualization, etc.

  • Freewares

    Freewares

    Download free trials and freewares of various fields and check out their efficiency before buying.

  • Multimedia

    Multimedia

    Learn techniques to design amazing and creative multimedia designs and characters including 2D & 3D layout with rendering.

C Programming

C Programming


Calculating Sum of Number of elements

Posted: 25 Sep 2013 12:04 PM PDT

Q. Write a C program to accept the number of elements to be insert from the user and calculate these elements sum.

For example:

if user enter no. of elements : 5
then he/she should enter elements value as:
Enter 1 element/number : 2
Enter 1 element/number : 7
Enter 1 element/number : 1
Enter 1 element/number : 10
Enter 1 element/number : 50
Result will be : 
Sum of elements/numbers : 70

Ans.

/*c program for entered number of elements and calculate the sum*/
#include<stdio.h>
int main()
{
 int num,arr[20],i,sum=0;
 //arr[20] value of changeable as big value

 printf("Enter number of element : ");
 scanf("%d", &num);
 for(i=1; i<=num; i++)
 {
    printf("Enter %d element : ",i);
    scanf("%d", &arr[i]);
 }
 for(i=1; i<=num; i++)
    sum = sum + arr[i];
 printf("\nSum of all numbers : %d",sum);
 getch();
 return 0;
}

/******************************************
The output of above program would be
*******************************************/


Output of Calculating Sum of Number of elements C program
Figure : Screen-shot for Calculating Sum of Number of
 elements C program



Read more

ComputerGeek

ComputerGeek


MySQL delete duplicate rows from table using single query

Posted: 24 Sep 2013 03:49 AM PDT

MySQL delete duplicate rows from table using single query: In this article,I will show how to delete duplicate records from table using single MySQL Query. Example: I have a table contain departments (department_table). CREATE TABLE IF NOT EXISTS `department_table` (   `id` INT(11) NOT NULL AUTO_INCREMENT,   `department` VARCHAR(250) NOT NULL,   PRIMARY KEY (`id`) ) ENGINE=MYISAM DEFAULT


Read more

9lessons:Ajax Select and Upload Multiple Images with Jquery

9lessons:Ajax Select and Upload Multiple Images with Jquery

Link to 9lessons Programming Blog

Ajax Select and Upload Multiple Images with Jquery

Posted: 23 Sep 2013 12:23 PM PDT

Very few days back I had posted an article about Multiple ajax image upload without refreshing the page using jquery and PHP. In this post I have updated few lines of code that allows to user can select and upload multiple images in single shot, thanks to Lakshmi Maddukuri for sending me a useful piece of code. Just take a quick look this live demo.

Multiple Ajax Image Upload without Refreshing Page using Jquery and PHP.

Read more »


Read more