Computer Science, asked by dolamanna, 10 months ago

2 a)
Write a for loop to print the numbers from 1 to 50​

Answers

Answered by Bakernancy444
1

Explanation:

for(int i=1;i<=50;i++)

printf("%d"i);

Answered by Anonymous
1

\huge\boxed{\fcolorbox{white}{pink}{Answer}}

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

if(i % 10 != 0){

Console.Write(i);

Console.Write(" ");

}

}

Similar questions