Write a program in Q Basic to print all the even numbers from 50 to 500 using the for next loop. also draw the flowchart.. please send the answer fast..
Answers
Answered by
0
Hey Mate Here Is Your Answer..
C Code:
#include <stdio.h>
int main() {
int i;
printf("Even numbers between 50 to 500 (inclusive):\n");
for (i = 50; i <= 500; i++)
{
if(i%2 == 0)
{
printf("%d ", i);
}
}
return 0;
flow chart is in the image..
Attachments:
Similar questions