How to add two number in c programming step by step code.
#include <stdio.h>
#include<conio.h>
#include <stdio.h>
#include<conio.h>
void main()
{
int a,b,sum;
{
int a,b,sum;
printf("Enter two numbers to add:\n");
scanf("%d%d",&a,&b);
scanf("%d%d",&a,&b);
sum=a+b;
printf("Sum of the numbers= %d\n",sum);
getch();
}
}
Output:
Enter two number to add:
5
4
Sum of numbers=9
Hard hai bro
ReplyDeleteNo Bro it's easy
DeleteAnd very interesting
Aap ek bar Karo ge to aap ko abhot easy lagega