Please help me in c language coding , i coded in mobile but i didn't get result as i have gotten in laptop. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Please help me in c language coding , i coded in mobile but i didn't get result as i have gotten in laptop.

https://code.sololearn.com/cPmkN0qhQ1U6/?ref=app

12th Feb 2021, 7:03 AM
K L Shekhar
K L Shekhar - avatar
9 Answers
+ 5
When you press Run it asks you to enter the input, it means the data u want to type in, when u see the message just type the numbers separated with space and then press Submit. Its weird to me too i prefer coding in PC, that way of submiting input its really bad.
12th Feb 2021, 7:36 AM
Arturop
Arturop - avatar
+ 2
Share the link here of your code in playground, ppl cant help u without it
12th Feb 2021, 7:05 AM
Arturop
Arturop - avatar
+ 2
Try this 👇👇 #include <stdio.h> int main() { float a,b; printf ("\nEnter value of a,b:"); scanf ("%f%f",&a,&b); printf ("\naddition=%f", a+b); return 0; }
12th Feb 2021, 2:07 PM
Jackson Kairani Maina
Jackson Kairani Maina - avatar
+ 1
Bro , I have mentioned now my simple c language coding , now could you help
12th Feb 2021, 7:12 AM
K L Shekhar
K L Shekhar - avatar
+ 1
It does run properly as it should here in sololearn, u right but what output or error message you get in ur PC?
12th Feb 2021, 7:25 AM
Arturop
Arturop - avatar
+ 1
Thank you bro , now I understand .
12th Feb 2021, 7:37 AM
K L Shekhar
K L Shekhar - avatar
0
Bro , I have made this Codding for addition in which you have to put the value of a and b , then the answer will be shown c , in pc when I run this code in dev c++ , I saw the output that is really should be , but in mobile when I am willing to do so , here only giving output of printf function and no option to input some values of a and b , and you know without putting value of a and b , how can I calculate value of c . That's my problem .
12th Feb 2021, 7:30 AM
K L Shekhar
K L Shekhar - avatar
0
Your idea is working
12th Feb 2021, 7:39 AM
K L Shekhar
K L Shekhar - avatar
0
Bro , I have now no any problem , my coding is also correct no any error was there,only I don't have understanding on that time 😂😂😂 , if I'll meet with any problem any more , I'll contact to you through message , thanks a lot !
14th Feb 2021, 5:34 AM
K L Shekhar
K L Shekhar - avatar