C Programming Tutorial 12 - C Basics Part 4 - Arithmetic Expressions

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

This series is far and away the best resource out there for true beginners - thank you vey much!

リーフ英会話スクール
Автор

Bro I have just started a Masters in Comp Sci, long after graduating from a Bachelor's in Finance in 2016. Thank you for the content, really helpful. Love from London

CorporateGamer
Автор

If you want accept float as an input use %lf instead of %i


Like this:


#include <stdio.h>
int main(){
#We declare here the variable
double y;
# We want an answer from the people behind the computer but we want an float answer
scanf("%lf", &y);


printf("%f", y);
return 0;
}


I was searching for this maybe it will help you ;)

Anoniemkoen
Автор

Radius? More like great-for-us! Thanks for making and sharing this wonderful tutorial series.

PunmasterSTP
Автор

im trying to learn coding right now from you and this shit is so satisfying to do OMFG
i plan on learning c, c++ and also the java and java script because its so fun to do

YB.-ws
Автор

Your really cool man, thanks for these awesome possum vids. Satisfaction))))

stratixfinance
Автор

How would you make it so the person inputting the number may insert a decimal? I changed the int radius to double radius and when I inputted the number I got a funky number.

MediaByMatias
Автор

Is it correct to use %d instead of %i for a single integer value??

navdeepkaur
Автор

#include <stdio.h>
int main()
{
double pepsi;
printf("enter the price of one pepsi ");
scanf("%f", &pepsi);
printf("u entered %f", pepsi);
return 0;
}



it says u entered

angelos
Автор

arent we supposed to use %lf for double data type instead of %d..because i thought %d was for float data type

UwU-dxhu
Автор

What is the difference between FLOAT and DOUBLE?

sebastianilienescu
Автор

Is double a data type same as int, float, char etc??? What is the memory it takes??

subratsrivastava
Автор

Value of a radius can only be whole number in this case.How to write the program to accept both, whole and decimal numbers?

Curiosity-
Автор

@caleb curry
Why does the data type "double area"
have = instead of ( )
meaning: double area = 3.14159 * (radius * radius); instead
double area ( "3.14159 * (radius * radius)");
Help pls?

paullawrence
Автор

why did we put 'radius' before 'area' in the print statement??

prasadm
Автор

what code editor you are using in mac?

gio
Автор

How can i Write a program that computes driving time when given the distance and the average speed.
And how can i Make the program repeatedly request user distance and speed until the user enters No.

nayrahalqasmi
Автор

you found a gap in the market with your videos. other channels don't do what you do as well as you do it

caleblr
Автор

Always check the return value of scanf() and make sure the variable is actually set before using it.
Not checking the return value is an error and teaching code that does not check the return value is irresponsible.

happygimp
welcome to shbcf.ru