answersLogoWhite

0

C plus plus program that will count?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

#include

int main (void) { puts ("1 2 3"); }

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C plus plus program that will count?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

C plus plus program to count digit in a string?

Use the following function to count the number of digits in a string. size_t count_digits (const std::string& str) { size_t count = 0; for (std::string::const_iterator it=str.begin(); it!=str.end(); ++it) { const char& c = *it; if (c>='0' && c<='9'); ++count; } return count; }


How do you write a counter program to count from 1 to 100 in C plus plus?

for(int i=1; i<=100; ++i ) std::cout << i << std::endl;


Can you program games with c plus plus?

Yes, you can program games with C++.


Write a c or c plus plus program to print first 50 odd numbers using do while loop?

unsigned count = 0;unsigned num=1; do { std::cout << num << std::endl; num +=2; } while (++count<50);


How to restart c plus plus program?

Exit the program and relaunch it.


Lint is a compiler b a interactive debugger c a cinterpreter d a tool for analysing c plus plus program?

d a tool for analysing c plus plus program


C program to compute 1 plus 4 plus 9 plus?

#include<stdio.h> #include<conio.h> void main() { int n,count=0,sum=0; printf("Enter the number of values"); scanf("%d",&n); for(int i=1;count<n;i++) { sum+=i*i; count++; } getch(); }


How do you write a C plus plus program that will display the first 10 positive prime numbers?

By learning how to program on C+.


Where did C plus plus program come from?

C++ is an extension of C, and was invented by Bjarne Stroustrup.


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


Can you rewrite a cuda file in c c plus plus language?

Yes, you can rewrite a cuda program originally written in c in c plus plus.


What is a C plus plus game project program?

A C++ game project program could either be a game written in C++ or a C++ library that helps you develop a game.