C Programming - If Else condition - Session - 7
The following is a chat snippet of the Session - 7 of the training program "Software Engineer - for Non-IT Students.
Please click the video below to watch the full session - 7
Anjum Parveen8:49 PM
okay
Jameela a9:22 PM
#include<stdio.h>
void main ()
int bike A = 10
int bike B = 12
if(int A > B)
{printf("%d",VALID PARKING)
}
else()
{
}
Mohamed Abdulla Aliyar9:25 PM
I shared my result on WhatsApp
Anjum Parveen9:27 PM
showing error
Thameem9:27 PM
int main()
{
int bikes = 10;
int myBikes= 10;
if(bikes >= myBikes)
{
printf("you can park");
}
else
{
printf("you cannot park");
}
Anjum Parveen9:28 PM
ok
Anjum Parveen9:31 PM
#include < stdio.h >
void main ()
{
int bike = 10;
int bike = 15;
if (10 < 15)
{
printf ("can park");
}
else
{
printf ("can't park");
}
}
Anjum Parveen9:32 PM
what is my mistake?
You9:32 PM
remove the space before and after stdio.h
Mohamed Abdulla Aliyar9:33 PM
#include <stdio.h>
void main()
{
int Bike = 10;
int Garage = 10;
if(Bike <= Garage)
{
printf("Allowed");
}
else
{
printf("Not allowed");
}
}
You9:33 PM
let us know if it worked.
abu-vybv-kkq
karthick Raja9:41 PM
#include<stdio.h>
void main()
{
int Bikes;
int Bike = 10;
printf("Enter the number");
scanf("%d",&Bikes);
if(Bike >= Bikes)
{
printf("Can store");
}
else
{
printf("Can't store");
}
}
No comments:
Post a Comment