Rotate your phone or change to desktop for better experience

Rotate your phone or change to desktop for better experience

A simple interactive program

// A simple interactive program

#include <stdio.h>

void main()

{

int a,b;

printf("enter the value of a and b");

scanf("%d %d",&a,&b);

printf("the addtion of a and b is %d",a+b);

}

 /* OR

{
#include <stdio.h>

void main()
{

int  a,b,sum;

printf("enter the value of a and b\n");

scanf("%d %d",&a,&b);

sum=a+b;

printf("the addtion of a and b is %d\n",sum);

} */


Post a Comment

0 Comments