Farms: C Programming Tutorial - 1 - Introduction
Productivity | Information | History | View | Quality
1150196View
Facebook - https://www.facebook.com/TheNewBoston-464114846956315/ GitHub - https://github.com/buckyroberts Google+ - https://plus.google.com/+BuckyRoberts LinkedIn - https://www.linkedin.com/in/buckyroberts reddit - https://www.reddit.com/r/thenewboston/ Support - https://www.patreon.com/thenewboston thenewboston - https://thenewboston.com/ Twitter - https://twitter.com/bucky_roberts
Comments
-
2:45
-
Why my laptop can't write { } " "
-
You are my idol!
-
The while loop is not working. Help
#include <stdio.h>
#include <stdlib.h>
void flig(){
int a, b, c;
char x;
printf("Enter the 2 numbers\n");
scanf("%d %d", &a, &b);
c=a*b;
printf("The product of a and b is = %d\n", c);
printf("Do you want to continue?(y/n)\n");
scanf(" %c", &x);
printf("The character entered is %c", x);
while(1){
if(x!='y' || x!='Y'){
break;
}
}
}
void main(){
flig();
} -
great work sir ,veryy useful college proff just sucks.thank you very much
-
#include <iostream>
using namespace std;
int main() {
int x, y, sum, diff, product, quotient, reminder, decision;
cout << "I'm a calculator. Do you want to find a maths answer?\n";
cout << "Type '1' for addition, '2' for substraction, '3' for multiplication or '4' for division.\n";
cout << "Type '5' to quit.\n";
do {
cin >> decision;
if (decision == 1) {
cout << "Type your first addend.\n";
cin >> x;
cout << "Type your second addend.\n";
cin >> y;
sum = x + y;
cout << "The sum is " << sum << ".\n\n";
}
if (decision == 2) {
cout << "Type your minuend.\n";
cin >> x;
cout << "Type your subtrahend.\n";
cin >> y;
diff = x - y;
cout << "The difference is " << diff << ".\n\n";
}
if (decision == 3) {
cout << "Type your multiplier.\n";
cin >> x;
cout << "Type your multiplicand.\n";
cin >> y;
product = x * y;
cout << "The product is " << product << ".\n\n";
}
if (decision == 4) {
cout << "Type your dividend.\n";
cin >> x;
cout << "Type your divisor.\n";
cin >> y;
quotient = x / y;
reminder = x % y;
cout << "The quotient is " << quotient << " while the remainder is " << reminder << ".\n\n";
}
if (decision == 5) {
cout << "Thanks for using this program!";
return 0;
}
if (decision > 5) {
cout << "That is an invalid number. Valid numbers are 1, 2, 3, 4 and 5.\n\n";
}
} while (decision != 5)
}
// a calculator -
Hey guys,
We have developed a cool quiz app of programming, TechQ. It's fun. Check it out. Hope it helps all.
https://play.google.com/store/apps/details?id=com.quizapp.proglang&hl=en -
Thanks bucky for this C tutorial series! People like you truly do make the world a better place!
-
can I learn c programming in windows 8 or higher?
-
hello bucky how are you i am iranian and i love the all of the programing languages but in youtube i cant download and see it my internet not have speed and lap lap lap please get link for downloading thanks for your video i am yusuf(joseph) very thanks
-
First off, Bucky Roberts is hands down the coolest name in the world
-
Bucky from Captain America 😂😂😂
-
omg dude no homo but i love you, thank you!
-
You should add subtitles too... it would make it easier for everyone to learn then!
-
love you, man!!!!
thanks for your videos -
Bucky, I can't thank you enough for your videos! My professor recommended one of your tutorials for a Python class I was taking and I ended up watching them for the entire class. I am planning to take a programming in C class in a few weeks and I am starting this series to try to get a head start. Your videos are informative and entertaining. Thanks again!!
-
very constructive lessons.i however couldn't locate the c source code from the beginning, help please on how i can get to the forum and how i can participate.
-
I cant run the program when its in a project.
-
So helpful for my college courses. Thanks!
-
You are Superb.......