+ 1
Can anyone post a simple adding of two numbers c code
7 Réponses
+ 8
Naresh try this :
int a=2;
int b=3;
int c;
c=a+b;
printf("%d",c);
+ 8
printf("%d",1+2);
Is this what u expected?
+ 7
Naresh you r welcome, bro
+ 3
You should attempt it yourself first.
+ 1
No bro showing error in solo learn
+ 1
Thanks bro
+ 1
#include<stdio.h>
main()
{
float a;
float b;
printf("Enter 2 numbers:\n");
scanf("%f%f",&a,&b);
printf("Sum = %f\n",a+b);
return 0;
}