Home
C Programming Tutorials
_Introduction to C
_Operators
_Conditional Statements
__If Statement
__If else Statement
__Nested If else Statement
__If else Ladder Statement
__Switch Case
_Loops
__While Loop
__Do While Loop
__For Loop
__Nested For Loop
_Functions
_Arrays
_Strings
_Pointers
_Structure
_File Handling
_Storage Classes
_Practice Q & A
C Programming Projects
_Student Attendance
_Library Management
_Hotel Menu Card
Python Tutorials
_Introduction to Python
Web Devleopment Tutorials
_Introduction to Web Development
Ad Code
Sanskar Study - Learn , Practice & Grow
C Practice Q_26
Answer :
Do while Loop :
#include<stdio.h>
int main()
{
int num=50;
do
{
printf("%d\n",num);
num--;
}
while (num>=40);
}
While Loop :
#include<stdio.h>
int main ()
{
int num=50;
while (num>=40)
{
printf("%d\n",num);
num--;
}
}
For Loop :
#include<stdio.h>
int main ()
{
int num;
for(num=50;num>=40;num--)
{
printf("%d\n",num);
}
}
Output :
Post a Comment
0 Comments
About Me
Sanskar Biradar
I have Completed SSC and interested in Technology & coding so start preparing and exploring coding languages
View my complete profile
Contact form
0 Comments