C Programming Tutorial - 37 - Absolute Value with abs

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

when i learn how old i am, i cant help but leave a tear

Merserissugoi
Автор

I actually guessed 12.8 (not the full thing) for the square root, so that's great.

TheUltimateRPGOfficial
Автор

I am watching your videos in 2024. (They are sick) But C has changed the syntax of absolute value from abs( ) to fabs( ).

aritramukherjee
Автор

So when I enter this the way you have it shown here. I get errors saying "variable year1, (and year2 and age) are not initialized. I can easily fix it by making year1, year2 & age = 0 but why do i have to do that?

kaseybadgett
Автор

I've sqrt(water) my computer and it does not work anymore, please help

holalluis
Автор

what if i want different sqrt, like third sqrt from number 8  is 2 if you know what i mean . How do i specify it ? because by default its always just basic sqrt.

vtfmda
Автор

Hi Bucky, since you mentioned that puts and gets are better, why do you still use printf and scanf instead of gets and puts?

isabelleortiz
Автор

Pow --> You have to punch your computer xD XD XD XD pls :D

CountDuncanWizard
Автор

in your scanf why did you enter &year1 instead of just year(int variable)

ankurfcam
Автор

Or u could just use

int age1 = year1 - year2
int age2 = year2 - year1

if(year1>year2){
printf("%d \n, age1);
}else{
printf("%d \n, age2);

kevinverdhi
Автор

this doesnt work on linux, any way to make it?

NagatoKamiPain
Автор

Is abs function some thing like this? :
int abs(int number)
{
return number * (-1);
}

shadowmeth
Автор

sqrt and fabs
if you know what I mean.

osamagamal
Автор

#include <stdio.h>
#include <stdlib.h>
#include<math.h>

int main()
{
printf("%f\n", pow(64, 1/3));
return 0;
}

The result of the above program is always 1. But here im trying to find the cubic root of 64
can anyone help me out?

ganeshvicky
Автор

Oh wow 0 dislikes on a 50k video, i have never seen that before :O

stamvid