answersLogoWhite

0


Best Answer

Use a linked-list.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: To enter n nos without using arrays in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

WAP to read any two numbers and display largest of them?

Using if-else statement #include<stdio.h> #include<conio.h> int main(void) { long int n,i; clrscr(); printf("\n Enter any two nos."); scanf("%ld%ld",&n,&i); if(n>i) printf("\nThe largest no. is=%ld",n); else printf("\nthe largest no. is=%ld",i); getch(); return 0; } using ternary operator #include<stdio.h> #include<conio.h> int main(void) { int n,i,a; clrscr(); printf("\n Enter any two nos."); scanf("%d%d",&n,&i); a=(n>i?n:i); printf("\nThe largest no. is=%d",a); getch(); return 0; }


Using while loop write a program which calculates the product of digits from 1 to 5 and also show these nos vertically?

Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.


How to find the sum of given 10 nos in qbasic?

10 cls 11 c = 0 20 for n =1 to 10 30 input"enter no.";a 40 c=c+a 50 next n 60 print c


Write a c program to sort three integer numbers using nested if statement?

// HI THIS IS MAYANK PATEL /*C Program to find Maximum of 3 nos. using Nested if*/ #include<stdio.h> #include<conio.h> void main() { int a,b,c; // clrscr(); printf("Enter three number\n\n"); scanf("d%d",&a,&b,&c); if(a>b) { if(a>c) { printf("\n a is maximum"); } else { printf("\n c is maximum"); } } else { if(b>c) { printf("\n b is maximum"); } else { printf("\n c is maximum"); } } getch(); }


Find the sum of 1 plus 2 plus 3 plus . plus n nos using c program?

if (n%2==0) sum=n/2*(n+1); else sum=(n+1)/2*n;

Related questions

How do you use super Nos Pump to lose weight?

How do you lose weight using super nos pump


How do you use NOS on dragracerv3 on addicting games com?

just press enter


Differtiate window NOS over unix NOS?

If both Windows and Unix are using TCP/IP as their primary NOS there isn't much difference to speak of.


How will you write 3rd march 2011 in 5 letters without using nos?

Just now you could write "TODAY" but the answer would not be valid ever again.


Write a programme to find the sum and product of three numbers?

//sum and product of 3 nos #include #include void main() { int a,b,c; printf("enter the 3 nos"); scanf("%d%d%d",&a,&b,&c); printf("sum of 3 nos",a+b+c); printf("product of 3 nos",a*b*c); getch(); }


C program that will sort five numbers using loops and arrays?

#include<stdio.h> #include<conio.h> void main() { int a[5],i,j,t; clrscr(); printf("Enter 5 nos.\n\n"); for (i=0;i<5;i++) scanf("%d",&a[i]); for (i=0;i<5;i++) { for(j=i+1;j<5;j++) { if(a[i]>a[j]) { t=a[i]; a[i]=a[j]; a[j]=t; } } } printf("Ascending Order is:"); for(j=0;j<5;j++) printf("\n%d",a[j]); getch(); }


How would you answer in spanish using the person Miguel Quien les sirvio el pescado asado?

Miguel nos/se lo sirvio. ('Nos' - us. 'Se' - them)


How can you use 5000 specials on Midnight Club Los Angeles?

Enter a private online game. Go to beach and use NOS until you have no more, and then drive into the water. Quick fix and repeat process. Or, enable NOS cheat. Drive into water with just the NOS, no gas and repeat process.


How do I show my work for how many hours are in 500 minutes?

search long division online click on mathsonline org enter nos


What is a scrabble words using the letters NTGSBRON and starts with an N?

* Nob.s * Nog.s * Nor * Nos * Not


What is a three letter word using letters from the word companies clue is energy drink?

Nos. Amp


What does nos?

Nos is short for Numbers.