Computer Science, asked by sanahusna5, 2 months ago

write for loop that displays the numbers from 50 to 61

Answers

Answered by adwaitrane26
5

Answer:

Using Java

public class loop {  

public static void main(String[] args) {  

   

   for(int i=50;i<62;i++){  

       System.out.println(i);  

   }  

}  

}  

Using python

for i in range(50, 62):

   print(i)

Using C

#include<stdio.h>

#include<conio.h>

void main()

{

int n;

clrscr();

printf("\n"); //for new line

for(n=50;n<62;n++)

{

 printf(" %d",n);

}

getch();

}

Explanation:

Similar questions