+ 1

Where to enter the value of integers a and b in c programming language to get the sum

28th Feb 2021, 9:31 AM
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ - avatar
8 Réponses
+ 4
Dev Pratap Singh , i did a try with your code - and it works as expected. maybe you have some trouble with the input in playground. to get both of your requested inputs, the values have to be entered, each in a separate line, in the input window. then press submit.
28th Feb 2021, 9:46 AM
Lothar
Lothar - avatar
+ 1
Where's the code?
28th Feb 2021, 9:31 AM
Soumik
Soumik - avatar
+ 1
See my profile
28th Feb 2021, 9:32 AM
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ - avatar
+ 1
Dev Pratap Singh you are asking for help. Try and make it as easy as possible for anyone to help you. Copy the code's link and paste it in the description here.
28th Feb 2021, 9:41 AM
Slick
Slick - avatar
+ 1
#include <stdio.h> int main() { int a , b; printf("Enter number a"); scanf ("%d" , &a); printf ("Enter number b"); scanf ("%d" , &b); printf ("The sum is %d" , a+b); return 0; }
28th Feb 2021, 9:46 AM
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ - avatar
+ 1
Please tell me guys
28th Feb 2021, 9:46 AM
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ - avatar
+ 1
Thats good right there. Open the code, hit RUN, type 2 numbers, each on a seperate line in the input box, then hit SUBMIT. Sololearns multiple input is not interactive, meaning you need to supply all inputs at once
28th Feb 2021, 9:48 AM
Slick
Slick - avatar
0
Ok
28th Feb 2021, 9:44 AM
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ - avatar