program in c to print 1 to 100 without using loop
Answer Posted / praveen
#include<stdio.h>
#include<stdlib.h>
void prav(int);
main()
{
int i=1;
prav(i);
}
void prav(int j)
{
if(j<101)
{printf("%d\n",j);
j++;
prav(j);}
else
exit(0);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is there a way to compare two structure variables?
write an algorithm to display a square matrix.
When c language was developed?
What is string function c?
Explain how can a program be made to print the line number where an error occurs?
Explain what is a pragma?
what is uses of .net
What are reserved words with a programming language?
What is the purpose of void pointer?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
How do I copy files?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Explain can you assign a different address to an array tag?
What math functions are available for integers? For floating point?
Write a program to reverse a given number in c?