This program is about print the odd number up to the given limits using Goto statement.
#include<stdio.h> int main() { int i,n; printf("\n Enter the starting value:"); scanf("%d",&i); printf("\n Enter the Ending value:"); scanf("%d",&n); start: if(i%2==1) { printf("\n%d",i); } i++; if(i<=n) { goto start; } return 0; }To download raw file Click Here
Enter the starting value: 5 Enter the Ending value : 15 5 7 9 11 13 15
Learn All in Tamil © Designed & Developed By Tutor Joes