answersLogoWhite

0

C program to print numbers 1 to n?

User Avatar

Anonymous

15y ago
Updated: 8/17/2019

how do we use loops in c plus plus programing and what are basic differences between do,for and while loop

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Write a c program to print the 100 to 1 nos?

Write a c program to print the 100 to 1 nos


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


Write a C Program to print sum of squares of odd numbers?

#include


Write a C program to print the following series 112 122 . 1n2?

write a program to print the series 1/12+1/22+.........+1/n2 ?


How do you write a program in objective c numbers 1-100 prime numbers?

fdsgfhgdfhgdf


Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?


Write a c program to print prime numbers from 1 to 10000 that has an unit digit which is multiple of 3?

This is a homework question and does not deserve an answer because you will learn nothing other than being lazy.


How do you Write a C program to print a Series of Odd Numbers and Even Numbers.?

Reference:http:cprogramming-bd.com/c_page2.aspx# strange number


What is a C program to print initials?

printf ("initials");


Print first ten prime numbers in c?

// simple program to generate first ten prime numbers #include<stdio.h> #include<conio.h> void main() { int c,i,j,n; clrscr(); for(i=2;i<30;i++) { c=0; for(j=2;j<i;j++) { if(i%j==0) {c=c+1; } } if(c==0) printf("%d",i); } getch(); }


C program to find greatest of three numbers?

# include<stdio.h> main() { int a,b,c; print f("enter the values of a,b,c"); scan f("%d%d%d",&a,&b,&c); if((a>b)&&(a>c)) print f("Greatest value is a =%d",a); else if((b>a)&&(b>c)) print f("Greatest value is b=%d",b); else print f("Greatest value is c=%d",c); }


C program to fine the largest of 10 given number?

first sort the ten numbers in descending order and print the first number. That will be the largest no