A sample to calculate sum of two numbers.c

//sum of two numbers.

#include<stdio.h>
#include<conio.h>

int main()
{
clrscr();
int a,b,c;
printf("enter first number");
scanf("%d",&a);

printf("enter second number");
scanf("%d",&b);

c=a+b;
printf("sum of numbers: %d",c);
getch();


//same as we can subtract,multiply,divide,remainder(%)
thank you !!
SHARE

Milan Tomic

Hi. I’m Designer of Blog Magic. I’m CEO/Founder of ThemeXpose. I’m Creative Art Director, Web Designer, UI/UX Designer, Interaction Designer, Industrial Designer, Web Developer, Business Enthusiast, StartUp Enthusiast, Speaker, Writer and Photographer. Inspired to make things looks better.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment