Pattern Codes, ABCDE Code, Arduino Code

Sunday 15 January 2017

Sum of two Number in C

Sum of Two numbers

Code:

#include<stdio.h>

int main()
{
     int num1,num2, sum;
     printf("\n Enter the number of your choice");
     scanf("%d%d",&num1,&num2);
     sum = num1 + num2;
     printf("\n Sum of two numbers %d and %d is  =  %d",num1,num2,sum);
     getch();
     return 0;
}

No comments :

Post a Comment

Rolls Royce

Rolls Royce
Amazing Cars

About Me