Write a C program to print all numbers between a and b (a and b inclusive) using a while loop. Input Format: Input consists of 2 integers. The first integer corresponds to a and the second integer corresponds to b. Assume a<=b. Output Format: Refer Sample Input and Output for formatting specifications. [All text in bold corresponds to input and the rest corresponds to output] Sample Input and Output: Enter the value of a 4 Enter the value of b 10 4 5 6 7 8 9 10
#include<stdio.h> int main(){ int a,b; scanf("%d",&a); scanf("%d",&b); while (a<=b) { printf("%d\n",a); a++; } return 0; }