Search This Blog

Friday, 15 May 2020

programming C(two integers total)

  two integers and display the total


#include <stdio.h>
#include <stdlib.h>

int main()
{
    int x,y;

    printf("enter first number \n");
    scanf("%d",&x);

    printf("enter second number \n");
    scanf("%d",&y);

    printf("total is %d \n",x+y);
    return 0;

}

    

No comments:

Post a Comment

please wait...