Part 3 | Conditional Statements IF, IF ELSE, SWITCH | C Programming Tamil Tutorial

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


0:00 - Intro
0:21 - Daily Tips
6:53 - Winners Announcement
7:55 - What is Control statements
12:58 - if else - using 1 input
18:46 - if else - using 1 input
27:47 - What is Nested if -
33:48 - else if ladder
48:32 - What is Switch
52:44 - Switch program

This video is part Three video of the series and today we will be discussing the general aspects of programming such as Conditional Statements IF IF ELSE, and SWITCH in C Programming.

#100K Coding Challenge is a series of 10 programming tutorial videos in Tamil. It is an initiative by Team Brototype to teach programming in the simplest possible manner across Tamil Nadu and it is completely FREE of cost.

Link to Windows installation:

Link to Linux installation:

Link to Mac installation:

Today's assignment

About us:

Brototype is more than just a YouTube channel. We are Kerala's Top community for aspiring techies looking to learn coding and land their dream IT jobs. Our YouTube channels provide free programming tutorials and tech videos in regional languages.

We also have a 7-month offline training program called 'Brocamp', where students from any educational background can learn coding in an office environment and pay the fee after placement. We have helped 600+ students get high-paying IT jobs. As a result, we are now focusing on Tamil to reach a wider audience and help more people improve their lives.

For enquiries & updates WhatsApp us to 9995270355

About us:

Brototype is more than just a YouTube channel. We are Kerala's Top community for aspiring techies looking to learn coding and land their dream IT jobs. Our YouTube channels provide free programming tutorials and tech videos in regional languages.

We also have a 7-month offline training program called 'Brocamp', where students from any educational background can learn coding in an office environment and pay the fee after placement. We have helped 600+ students get high-paying IT jobs. As a result, we are now focusing on Tamil to reach a wider audience and help more people improve their lives.

For enquiries & updates WhatsApp us to 9995270355
Рекомендации по теме
Комментарии
Автор

Task 2:

printf("1 for January \n2 for February \n3 for March \n4 for April \n5 for May \n6 for June \n7 forJuly \n8 for August \n9 for September \n10 for October \n11 for November \n12 for December \nEnter your choice");

scanf("d", &choice);

switch(choice) {

case 1:

printf("You chose the month January");

case 2:

printf("You chose the month February");

case 3:

printf("You chose the month March");

case 4:

printf("You chose the month April");

case 5:

printf("You chose the month May");

case 6:

printf("You chose the month June");

case 7:

printf("You chose the month July");

case 8:

printf("You chose the month August");

case 9:

printf("You chose the month September

case 10:

printf("You chose the month October):

case 11:

printf("You chose the month November");

case 12:

printf("You chose the month December":

default:

printf("Enter valid number");
}
return EXIT _SUCCESS;
}
Output;
1 for January
2 for February
3 for March
4 for April
5 for May
6 for June
7 for July
8 for August
9 for September
10 for October
11 for November
12 for December

Enter Your Choice15

Enter valid number

aaliyaali
Автор

Task 1
printf("Enter 3 numbers");
scanf("%d%d%d", &num1, &num2, &num3);
if(num1 >= num2 && num1 >= num3)
printf("The Greatest number is %d", num1);
else if(num2 >= num1 && num2 >= num3)
printf("The Greatest number is %d", num2);
else
printf("The Greatest number is %d", num3);

aaliyaali
Автор

one of the best coding channel ever instructor Vineeth... no words man!!!! so far your lecturing method is easy to understand will do watch rest of te videos too..

dhileepn
Автор

Question 2 : Month

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

int main(void) {
int choice;
setbuf(stdout, NULL);
printf("1 for jan\n2 for feb\n3 for mar\n4 for apr\n5 for may \n6 for jun\n7 for jul\n8 for aug\n9 for sep \n10 for oct\n11 for nov\n12 for dec \nEnter your choice ");
scanf("%d", &choice);
switch(choice){
case 1:
printf("the selected month is january");
break;
case 2:
printf("the selected month is february");
break;
case 3:
printf("the selected month is march");
break;
case 4:
printf("the selected month is april");
break;
case 5:
printf("the selected month is may");
break;
case 6:
printf("the selected month is june");
break;
case 7:
printf("the selected month is july");
break;
case 8:
printf("the selected month is august");
break;
case 9:
printf("the selected month is september");
break;
case 10:
printf("the selected month is october");
break;
case 11:
printf("the selected month is november");
break;
case 12:
printf("the selected month is december");
break;
default:
printf("Invalid Entry");
}
return EXIT_SUCCESS;
}

sarves
Автор

2.
#include <stdio.h>

int main() {
float length, width, Area;
printf("Enter the length: ");
scanf("%f", &length);
printf("Enter the width: ");
scanf("%f", &width);
Area= length*width;
printf("The area of a rectangle: %f", Area);
return 0;
}

Gowthamat
Автор

Finally post credit Bgm (Laugh) Hits Me 🖤

hariprakash
Автор

#include <stdio.h>
#include <stdlib.h>
int main(void) {
int num1, num2, num3;
setbuf(stdout, NULL);
printf("enter three numbers: "); scanf("%d", &num1, &num2, &num3);
if(num1>num2)
{
printf("greatest number is Xd", num1);

}
else if (num2num3)
{
printf("greatest number is Xd, num2);
}
else
{

printf("greatest number is nums);
}
return EXIT SUCCESS;

Hari--
Автор

int main(void) {
int num1, num2, num3;
setbuf(stdout, NULL);
printf("enter 3 number's");
scanf("%d%d%d", &num1, &num2, &num3);
if(num1>num2){
if(num1>num3)
printf("the greatest number is %d", num1);
else
printf("the greatest number is %d", num3);
}
else{
if(num2>num3)
printf("the greatest number is %d", num2);
else
printf("the greatest number is %d", num3);
}
return EXIT_SUCCESS;
}

rioview
Автор

int main(void) {
int choice;
setbuf(stdout, NULL);
printf("1 for January \n2 for February \n3 for March \n4 for April \n5 for May \n6 for June \n7 for July \n8 for August \n9 for September \n10 for October \n11 for November \n12 for December \nEnter your choice");
scanf("%d", &choice);
switch(choice){
case 1 :
printf("January");
break;
case 2 :
printf("February");
break;
case 3 :
printf("March");
break;
case 4 :
printf("April");
break;
case 5 :
printf("May");
break;
case 6 :
printf("June");
break;
case 7 :
printf("July");
break;
case 8 :
printf("August");
break;
case 9 :
printf("September");
break;
case 10 :
printf("October");
break;
case 11 :
printf("November");
break;
case 12 :
printf("December");

default:
printf("Invalid Entry");

}

return EXIT_SUCCESS;
}

idlem same issue num 12 select pannina ( December Invalid Entry) ipidi than output katudu

+94742411454, +966564296985 whatsap only

soulofdevil
Автор

Bro.... Your way of teaching easy to understand thank You repeat the same content more than one time it's help full to recall the same content at the time.... Bro one request assignment questions konjam extra kudunga work out pannurathuku....

yokeshpreethi
Автор

assignment qs 1
#include <stdio.h>

int main() {
int number1, number2, number3;
printf("Enter 3 numbers: ");
scanf("%d%d%d", &number1, &number2, &number3);
if(number1>number2 && number1>number3){
printf("The greatest number is %d", number1);
}else if(number2>number1 && number2>number3){
printf("The greatest number is %d", number2);
}else{
printf("The greatest number is %d", number3);
}


return 0;
}

Gowthamat
Автор

Bro vedio la else if adder topic \n nuu oru command varudhuu Adu enna nuu solra sollitu sollavae ila

Yuvaxxx
Автор

Compare 3 greatest number using nested if Statement

#include<stdio.h>

#include <stdlib.h>

int main(void) {

int num1, num2, num3;

setbuf (stdout, NULL);

printf("Enter 3 Numbers");

scanf("%d%d %d", &num1, &num2, &num3);

if (num1>num2) {

printf("greatest number is %d", num1);

}

if (num3>num1) {

printf("greatest number is %d", num3);

}

else {

printf("greatest number is %d", num2);

}

return EXIT_SUCCESS;

}

MOTO_ADDICTTO
Автор

#include <stdio.h>
int main() {
int select;
printf("1 for jan \n2 for feb \n3 for march \n4 for april \n5 for may \n6 for june \n7 for july \n8 for aug \n9 for sep \n10 for oct \n11 for nov \n12 for dec \n\nEnter your choice ");
scanf("%d", &select);
switch(select){
case 1:
printf("you selected month is jan");
break;
case 2:
printf("you selected month is feb");
break;
case 3:
printf("you selected month is march");
break;
case 4:
printf("you selected month is april");
break;
case 5:
printf("you selected month is may");
break;
case 6:
printf("you selected month is june");
break;
case 7:
printf("you selected month is july");
break;
case 8:
printf("you selected month is aug");
break;
case 9:
printf("you selected month is sep");
break;
case 10:
printf("you selected month is oct");
break;
case 11:
printf("you selected month is nov");
break;
case 12:
printf("you selected month is dec");
break;
default:
printf("you are a fool");
}
return 0;}

amazonprime
Автор

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

int main(void) {
setbuf(stdout, NULL);
int choose;
printf("1 for january \n2 for february \n3 for march \n4 for april \n5 for may \n6 for june \n7 for july \n8 for august \9 for september \n10 for october \n11 forn november \n12 for december \n coose the number ");
scanf("%d", &choose);
switch(choose){
case 1:
printf("you born in january");
break;
case 2:
printf("you born in february");
break;
case 3:
printf("you born in march");
break;
case 4:
printf("you born in april");
break;
case 5:
printf("you born in may");
break;
case 6:
printf("you born in june");
break;
case 7:
printf("you born in july");
break;
case 8:
printf("you born in august");
break;
case 9:
printf("you born in september");
break;
case 10:
printf("you born in october");
break;
case 11:
printf("you born in november");
break;
case 12:
printf("you born in december");
break;
default:
printf("nee oru aelien da");
}
return EXIT_SUCCESS;
}

content_irukku.maamey
Автор

int main(void) {
int number;
printf("n1 january \n2 february \n3 march \n4 april \n5 may \n6 jun \n7 july \n8 august \n9 september \n10 october \n11 november \n12 december \nEnter a number");
scanf("%d", &number);
switch(number){
case 1:
printf("january");
break;
case 2:
printf("february");
break;
case 3:
printf("march");
break;
case 4:
printf("april");
break;
case 5:
printf("may");
break;
case 6:
printf("jun");
break;
case 7:
printf("july");
break;
case 8:
printf("august");
break;
case 9:
printf("september");
break;
case 10:
printf("october");
break;
case 11:
printf("november");
break;
case 12:
printf("december");
default :

printf("invalid entry");

}
return EXIT_SUCCESS;
}

Sirius_viki
Автор

question 1
#include <stdio.h>

int main(void) {
int number1, number2, number3;

printf("enter your first number");
scanf("%d", &number1);

printf("enter your second number");
scanf("%d", &number2);

printf("enter your third number");
scanf("%d", &number3);

if (number1 > number2)
{
printf("greatest number is %d", number1);
}

else if (number2 > number3)
{
printf("greatest number is %d", number2);
}

else
{
printf("greatest number is %d", number3);
}


return 0;
}

codeli
Автор

Fluent in english video potinganna career build panna innum help fullah erukkum sir 😊

poornimaoffl
Автор

Discipline -= FREEDOM Daily tips are lit🔥

techthief
Автор

Question 1:#include <stdio.h>
#include <stdlib.h>

int main(void) {
int num1, num2, num3;
printf ("Enter 2 numbers");
scanf("%d%d", &num1, &num2);
if (num1>num2) {
printf("Greater Number is %d", num1);
}else{
printf("Greater Number is %d", num2);

}if (num1, num2>num3) {
printf("Enter 3rd Number");
scanf("%d", &num3);
printf("Greater Number is %d", num3);
}else {
printf("Greater Number is %d%d", num1, num2);
}
return EXIT_SUCCESS;
}


Question 2:

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

int main(void) {
int month;
printf("1 for JAN\n2 for FEB\n3 For MAR\n4 For APR\n5 For MAY\n6 For JUN\n7 For JUL\n8 For AUG\n9 For SEP\n10 For OCT\n11 For NOV\n12 For DEC\n choose your preferences");
scanf("%d", &month);
switch(month)
{
case 1:
printf("you have selected JAN"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
case 2:
printf("you have selected FEB"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
case 3:
printf("you have selected MAR"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
case 4:
printf("you have selected APR"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
case 5:
printf("you have selected MAY"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
case 6:
printf("you have selected JUN"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
case 7:
printf("you have selected JUL"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
case 8:
printf("you have selected AUG"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
case 9:
printf("you have selected SEP"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
case 10:
printf("you have selected OCT"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
case 11:
printf("you have selected NOV"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
case 12:
printf("you have selected DEC"); printf("!!THANKS FOR USING NITHYANANDHA CALENDER!! ");
break;
default:
printf("PLEASE SELECT ONLY FROM ABOVE GIVEN CHOICES ");
break;
}
return EXIT_SUCCESS;
}
Question 3:

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

int main(void) {
int amount, n500, n100, n50, n20, n10, c5, c2, c1;
printf("Enter amount");
scanf("%d", &amount);
n500=amount/500;
amount=amount%500;
printf("500 RS NOTE%d", n500);
n100=amount/100;
amount=amount%100;
printf("100 RS NOTE%d", n100);
n50=amount/50;
amount=amount%50;
printf("50 RS NOTE%d", n50);
n20=amount/20;
amount=amount%20;
printf("20 RS NOTE%d", n20);
n10=amount/10;
amount=amount%10;
printf("10 RS NOTE%d", n10);
c5=amount/5;
amount=amount%5;
printf("5 RS COIN%d", c5);
c2=amount/2;
amount=amount%2;
printf("2 RS COIN%d", c2);
c1=amount/1;
amount=amount%1;
printf("1 RS COIN%d", c1);

return EXIT_SUCCESS;
}


contact :9003959221

hariprakash
welcome to shbcf.ru