February 19, 2011

How C Program Works


Source: http://computer.howstuffworks.com

Here we are going to talk about one simple program c=a+b.

Code:
#include <stdio.h>

int main()
{
    int a, b, c;
    printf("Enter the first value:");
    scanf("%d", &a);
    printf("Enter the second value:");
    scanf("%d", &b);
    c = a + b;
    printf("%d + %d = %d\n", a, b, c);
    return 0;
}
Here's how the Program works when execute it.



Hope you liked the post, give feedback by comments.. :)

Related Posts :



Categories:

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Related Posts with Thumbnails