Write a program to produce the following output:
1
2
3
4
5
6
7
8
9
10
Answers were Sorted based on User's Feedback
Answer / bilal
guys how about the question write a program toprint
1
2 3
4 5 6
| Is This Answer Correct ? | 26 Yes | 3 No |
Answer / alish agrwal
#include<stdio.h>
#include<conio.h>
void main()
{ int i;
for(i=1;i<=10;i++)
printf("\n",i);
getch();
}
| Is This Answer Correct ? | 29 Yes | 14 No |
Answer / sagarraje nimbalkar
// using If else
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1;
while(i<=10)
{
printf("\n%d",i);
i++;
}
}
| Is This Answer Correct ? | 13 Yes | 4 No |
Answer / jjh
0
1 0 1
2 1 0 1 2
3 2 1 0 1 2 3
4 3 2 1 0 1 2 3 4
5 4 3 2 1 0 1 2 3 4 5
| Is This Answer Correct ? | 8 Yes | 6 No |
Answer / nazar hussain khan
#include"stdio.h"
#include"conio.h"
void main(void)
{
clrscr();
int a,
for(i=1;i<=10;i++)
{
printf("%d",i);
}
printf("\n");
getch();
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / guest
#include<stdioh>
#include<conio.h>
void main()
{
int i;
for(i=0;i<=10;i++)
{
printf("%d",i);
}
}
| Is This Answer Correct ? | 8 Yes | 14 No |
Answer / munna
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
for(i=0;i<=10;i++)
{
printf("the required numbers are:%d",i);
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 9 No |
Answer / kelly baby
Hello dear new friend,
my name is Kelly i read your profile and i decided to
contact you hopping that you will accept me as your friend,
please if you accept my request reply my true my email
address (kellybaby004@yahoo.in) so that i will send you my
picture and tell you more about me, do not late far
decadence be a barrier let love cornet because love is
abridge cornet far decadence to be lose.
yours kelly
| Is This Answer Correct ? | 5 Yes | 14 No |
We can draw a box in cprogram by using only one printf();& without using graphic.h header file?
What is the difference between File pointer and Internal Charecter Pointer?
Explain the difference between the local variable and global variable in c?
3. When do you say that a digraph is acyclic A)if and only if its first search does not have back arcs B)a digraph is acyclic if and only if its first search does not have back vertices C)if and only if its first search does not have same dfnumber D)None of these
Write a program which has the following seven functions. The functions should be: • main() this calls the other 6 functions • fget_long() a function which returns a long data type from a file • fget_short() a function which returns a short integer variable from a file • fget_float() a function which returns a floating point variable from a file • fprt_long() a function which prints its single, long argument into a file • fprt_short() a function which prints its single, short argument into a file • fprt_float() a function which prints its single, floating point argument into a file. You should use fscanf() to get the values of the variables from the input (the file) and fprintf() to print the values to the other file. Pay attention to using the correct format for each of the data types.
Without Computer networks, Computers will be half the use. Comment.
1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)
What are bitwise shift operators in c programming?
In how much time you will write this c program? Prime nos from 1 to 1000
What are the difference between a free-standing and a hosted environment?
What is a program?
how to make program without <> in libray.