Displaying Multiple Values in printf() - C Language Basics

C examples for Language Basics:Hello World

Description

Displaying Multiple Values in printf()

Demo Code

#include <stdio.h>

int main (void)
{
    int value1, value2, sum;

    value1 = 50;/* www .  j a v  a  2 s .  co  m*/
    value2 = 25;
    sum = value1 + value2;
    printf ("The sum of %i and %i is %i\n", value1, value2, sum);

    return 0;
}

Related Tutorials