/* write a program to find the area of a sphere with the help of the user input store all possible values in it... */ import 'dart:io'; void main() { stdout.write("enter the value of pi:"); double pi = double.parse(stdin.readLineSync()!); stdout.write("enter the value of radius:"); int radius = int.parse(stdin.readLineSync()!); double volumeOfSphere = 4 / 3 * pi * radius * radius * radius; stdout.write("the volume of a sphere is: $volumeOfSphere"); }
The print function will also put a space before the object if it is not the start of a line and a newline character at the end. When you use stdout, that time you need to convert the object to a string by yourself and you will do it by calling "str", and there is no newline character.
import 'dart:io'; void main() { stdout.write('enter a number'); int nummberone = int.parse(stdin.readByteSync()!); stdout.write('enter second number'); int numbertwo = int.parse(stdin.readByteSync()!); int result = numbertwo + nummberone; print('sum of the number is $result'); } sir code run ni ho raha
bhai i am following your course from the first video and sath sath practice b kar raha but last video and this video , seriously aik word ki b samaj ni arahi ho kia raha hai ,,, apne directly start kar dia pehle tora samja lete user input k bare me and ye hum kiyo lete hai iska use kis liye hota ...... because we are not from this field so hame ni pata in chezon ka
bhai i have explained in details but you have to do little practice, jitne zyda ap is par practice karin gy utna zyda ap easily understand kr lain. First time sub kuch smjh ni atta thora sa time lagta ha ap practice karin hopefully ap ka doubt door ho jaien gy. abhi hm thora advance topic ki taraf ja rahy agr apko lagta ha k ap ko smjh ni aa rae to ap agy na jaien pehle currecnt concepts ko clear kr lain phr agy move karin.
import 'dart:io'; void main() { stdout.write('enter number one'); int num1 = int.parse(stdin.readLineSync()!); stdout.write('enter number two'); int num2 = int.parse(stdin.readLineSync()!); int result = num1 + num2; print('sum is $result'); } bro ye code add krny ki bijay concatenate kr rha
jo main y import kia ha ap wo kro...... agr import ni ho raha tho type kr lo...... this tutorial has been completed by many students so it means you are doing something wrong
شکریہ سر میں اس ویڈیو تک پہنچ گیا ہوں، ابھی تک تو بہترین چل رہا ہے، امید ہے اچھا سیکھ سکوں گا میں۔
good luck thora sekho smjh kr seekho
Nice Sir and Nice teaching
thank you subscribe and share
Nice Sir and Nice Teacher
thanks
I really thank you because my project are not run and not input the data from console it's vedio great help ful me thank you 😊
share with your friends
❤❤
thanks
Dard se datastructure ka series start kare 🙏please
agy agy jb dart complete ho jay ge
Assalam u Alaikum sir..i hope you are doing well.
sir hm user sa bool data type sa true or false check kr skty ha jo user input da ra ho ga...
yes
Sir how can we do it
Great teacher
Thank you, do subscribe and share with your friends
Thanks
Share
5:00 Sir how are you running?(are you using any short key here?)
their is command, i want you to google it
/*
write a program to find the area of a sphere with the help
of the user input store all possible values in it...
*/
import 'dart:io';
void main() {
stdout.write("enter the value of pi:");
double pi = double.parse(stdin.readLineSync()!);
stdout.write("enter the value of radius:");
int radius = int.parse(stdin.readLineSync()!);
double volumeOfSphere = 4 / 3 * pi * radius * radius * radius;
stdout.write("the volume of a sphere is: $volumeOfSphere");
}
nice
Sir mai dart pad use kar raha ho muja input aur output lecture number 13 ki samaj ni ayi
try to watch someone else video agr mere video ki smjh ni ai and follow the course again
Asif Bhai , there are no assignments of part 10,11,12,13,14,15 in the road map document. can you please check it
ap google sy pooch lain
Respected sir kia stdout.write kaa bagher program run nahee goo gaa?
value print kr lo
enter number one5
enter number two10
sum is 510
hahahha
nice
thanks
salam sir sir ma dart pad use kar raha hu tu ma dart io library use kisi karo ga or ais program ku kisi karo ga?
yar vs code use kro
what is the deference between print and sdtout.write?
The print function will also put a space before the object if it is not the start of a line and a newline character at the end. When you use stdout, that time you need to convert the object to a string by yourself and you will do it by calling "str", and there is no newline character.
import 'dart:io';
void main() {
stdout.write('enter a number');
int nummberone = int.parse(stdin.readByteSync()!);
stdout.write('enter second number');
int numbertwo = int.parse(stdin.readByteSync()!);
int result = numbertwo + nummberone;
print('sum of the number is $result');
}
sir code run ni ho raha
error ky aa raha ha ?
change stdin.readByteSync()! to stdin.readLineSync()!
Shayad apna ? nhi lagaya int ka sat
Ku ka mana kia ha tu run hogaya ha sirf ? Ki mistake ha
bhai i am following your course from the first video and sath sath practice b kar raha but last video and this video , seriously aik word ki b samaj ni arahi ho kia raha hai ,,, apne directly start kar dia pehle tora samja lete user input k bare me and ye hum kiyo lete hai iska use kis liye hota ...... because we are not from this field so hame ni pata in chezon ka
bhai i have explained in details but you have to do little practice, jitne zyda ap is par practice karin gy utna zyda ap easily understand kr lain.
First time sub kuch smjh ni atta thora sa time lagta ha ap practice karin hopefully ap ka doubt door ho jaien gy.
abhi hm thora advance topic ki taraf ja rahy agr apko lagta ha k ap ko smjh ni aa rae to ap agy na jaien pehle currecnt concepts ko clear kr lain phr agy move karin.
sir get it concept clear hogaya alhamdolelah abi loops b clear hogaya thanks to you sir @@thetechbrotherss
import 'dart:io';
void main() {
stdout.write('enter number one');
int num1 = int.parse(stdin.readLineSync()!);
stdout.write('enter number two');
int num2 = int.parse(stdin.readLineSync()!);
int result = num1 + num2;
print('sum is $result');
}
bro ye code add krny ki bijay concatenate kr rha
bhai code to bilkul the ha ap ide refresh kr lo
main ny to apka hee code copy paste kia code sahiii hai or answer b teehk dy raha hai 5+5=10
Brro This Is Right
Bilkul Thik Ha
enter number one10
enter number two10
sum is 20
Aoa sir dart pad import"dart:io"; koo support nahee krr rha waha error aarha haa.
jo main y import kia ha ap wo kro...... agr import ni ho raha tho type kr lo...... this tutorial has been completed by many students so it means you are doing something wrong
@@thetechbrotherss Sir lakan dartpad paa likha aata haa kaa unsupported import dart:io;
bhai ye likho import 'dart:io'; @@muhammadrizwan1080
sir roadmap mai 13 part ki assignment ni hai
ap google kr k apni taraf sy practice kr lain
Answer plz
which answer ?
Nice Sir and Nice teaching
thank you subscribe and share