Lets fun with coding. here i wrote my first coding based on addition of two numbers through C programming language. It is easy to understand.
guys if you a have a any query so you may ask to me
#include<stdio.h>
#include<conio.h>
void main()
{
printf("Addition of two numbers\n"); \\ here \n is using to change the next line automatically
int a,b,c;
clrscr();
printf("Enter your first number\n");
scanf("%d",&a);
printf("Enter your second number\n");
scanf("%d",&b);
c=a+b;
printf("Addition of two number = %d",c);
getch();
}
guys if you a have a any query so you may ask to me
#include<stdio.h>
#include<conio.h>
void main()
{
printf("Addition of two numbers\n"); \\ here \n is using to change the next line automatically
int a,b,c;
clrscr();
printf("Enter your first number\n");
scanf("%d",&a);
printf("Enter your second number\n");
scanf("%d",&b);
c=a+b;
printf("Addition of two number = %d",c);
getch();
}
No comments:
Post a Comment
Thanks for sharing your views