Attachment '20.0.2.c'

Download

   1 #include <stdio.h>
   2 
   3 int x=8; 
   4 
   5 int add (int x, int y)
   6 {
   7     return (x+y)%10;
   8 }
   9 
  10 int main (int argc, char **argv)
  11 {
  12    int x, y, c;
  13    c=scanf("%d", &x );
  14    c=scanf("%d", &y );
  15    printf("%d + %d = %d\n", x, y, x+y );
  16    printf("%d + %d = %d\n", x, y, add(x, y) );
  17    
  18    return 0;
  19 }

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.