Computer Science, asked by goutamsinha2012, 20 days ago

Pls answer the following question. it's urgent.

Write a program in QBASIC to print first 10 natural numbers. ​

Answers

Answered by voddiralamrunalini
3

Answer:

This works in QB64, which is a modern version of QBasic

You can read about FOR loops here :

this is a very good set of lessons in Basic that explains this slowly and simply (FOR loops are converted in chapter 19 on the following page ):

hope it helps u armyyy...

hope it helps u Mark me as brainliest

REFERE THE ATTACHMENT ABOVE

army is this correct I have attached another image see that

Attachments:
Answered by kritika9rajput
2

Answer:

#include<stdio.h>

int main(void){

int n=0,i=0;

printf("enter a natural number ");

scanf("%d",&n);

n=2*n;

for(i=1;i<=n;i++){

if(i%2==0)

Explanation:

Similar questions